You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit db1781f
Browse filesBrowse the repository at this point in the historyBrowse files
feat: parse MySQL 8.4 SHOW statements for variables, status, grants, logs and other server metadata
MySQL SHOW VARIABLES, STATUS, PROCESSLIST, GRANTS, WARNINGS, ERRORS,
PROFILE, ENGINE, BINARY LOGS, BINLOG and RELAYLOG EVENTS, REPLICA STATUS,
TRIGGERS, EVENTS, OPEN TABLES, routine STATUS and CODE, CHARACTER SET,
COLLATION and DATABASES became UnsupportedStatement, or a ShowStatement
for a single word, and SHOW INDEX FROM t FROM db failed to parse.
Add MySqlShowStatement for these forms. Its Kind lists the parts each
statement allows, and the values follow the MySQL 8.4 grammar: string
LIKE patterns, log names and channels, unsigned limits and positions.
It is read with Dialect.MYSQL and MARIADB and without a dialect; without
a dialect a single word stays a ShowStatement, and the spellings removed
in MySQL 8.4 (MASTER, SLAVE) are not read with Dialect.MYSQL.
Share the {FROM | IN} db clause and the LIKE | WHERE filter as
ShowDbSelection and ShowFilter, each read by one production, in SHOW
TABLES, COLUMNS, TABLE STATUS and INDEX; the existing accessors read and
write them. Extend ShowIndexStatement with EXTENDED, INDEXES and KEYS,
IN, a Table, the trailing database and WHERE, and report its table in
TablesNamesFinder.
Let the whole-statement lookahead of the typed SHOW forms accept a WHERE
filter after its first condition, so conditions with AND or OR no longer
fall back to UnsupportedStatement.
Signed-off-by: minleejae <mmj9808@gmail.com>
0 commit comments