mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-29 10:24:06 +00:00
feat: Initial support for parsing MySQL show variables (#559)
Co-authored-by: Alex Vasilev <vaspiring@gmail.com>
This commit is contained in:
parent
231370a770
commit
e2b943799a
4 changed files with 26 additions and 0 deletions
|
@ -820,6 +820,13 @@ fn parse_substring_in_select() {
|
|||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
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'");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_kill() {
|
||||
let stmt = mysql_and_generic().verified_stmt("KILL CONNECTION 5");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue