mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-07-12 11:14:59 +00:00
Support global and session parts in show variables for mysql and generic dialects (#1032)
This commit is contained in:
parent
dc2ceedeea
commit
c0c2d58910
3 changed files with 28 additions and 4 deletions
|
@ -1512,6 +1512,12 @@ fn parse_show_variables() {
|
|||
mysql_and_generic().verified_stmt("SHOW VARIABLES");
|
||||
mysql_and_generic().verified_stmt("SHOW VARIABLES LIKE 'admin%'");
|
||||
mysql_and_generic().verified_stmt("SHOW VARIABLES WHERE value = '3306'");
|
||||
mysql_and_generic().verified_stmt("SHOW GLOBAL VARIABLES");
|
||||
mysql_and_generic().verified_stmt("SHOW GLOBAL VARIABLES LIKE 'admin%'");
|
||||
mysql_and_generic().verified_stmt("SHOW GLOBAL VARIABLES WHERE value = '3306'");
|
||||
mysql_and_generic().verified_stmt("SHOW SESSION VARIABLES");
|
||||
mysql_and_generic().verified_stmt("SHOW SESSION VARIABLES LIKE 'admin%'");
|
||||
mysql_and_generic().verified_stmt("SHOW GLOBAL VARIABLES WHERE value = '3306'");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue