mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-30 18:57:21 +00:00
feat: Support TABLE
keyword with SELECT INTO
(#487)
This commit is contained in:
parent
6d057ef4df
commit
6b2fc8102f
3 changed files with 11 additions and 3 deletions
|
@ -383,13 +383,17 @@ fn parse_select_into() {
|
|||
&SelectInto {
|
||||
temporary: false,
|
||||
unlogged: false,
|
||||
table: false,
|
||||
name: ObjectName(vec![Ident::new("table0")])
|
||||
},
|
||||
only(&select.into)
|
||||
);
|
||||
|
||||
let sql = "SELECT * INTO TEMPORARY UNLOGGED table0 FROM table1";
|
||||
one_statement_parses_to(sql, "SELECT * INTO TEMPORARY UNLOGGED table0 FROM table1");
|
||||
let sql = "SELECT * INTO TEMPORARY UNLOGGED TABLE table0 FROM table1";
|
||||
one_statement_parses_to(
|
||||
sql,
|
||||
"SELECT * INTO TEMPORARY UNLOGGED TABLE table0 FROM table1",
|
||||
);
|
||||
|
||||
// Do not allow aliases here
|
||||
let sql = "SELECT * INTO table0 asdf FROM table1";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue