mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-28 18:04:05 +00:00
Support SHOW COLUMNS FROM tbl FROM db
(#562)
This commit is contained in:
parent
e2b943799a
commit
71c3ec057b
2 changed files with 14 additions and 10 deletions
|
@ -110,12 +110,10 @@ fn parse_show_columns() {
|
|||
.one_statement_parses_to("SHOW COLUMNS IN mytable", "SHOW COLUMNS FROM mytable");
|
||||
mysql_and_generic()
|
||||
.one_statement_parses_to("SHOW FIELDS IN mytable", "SHOW COLUMNS FROM mytable");
|
||||
|
||||
// unhandled things are truly unhandled
|
||||
match mysql_and_generic().parse_sql_statements("SHOW COLUMNS FROM mytable FROM mydb") {
|
||||
Err(_) => {}
|
||||
Ok(val) => panic!("unexpected successful parse: {:?}", val),
|
||||
}
|
||||
mysql_and_generic().one_statement_parses_to(
|
||||
"SHOW COLUMNS FROM mytable FROM mydb",
|
||||
"SHOW COLUMNS FROM mydb.mytable",
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue