mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-04 06:18:17 +00:00
Parse INSERT
with subquery when lacking column names (#1586)
This commit is contained in:
parent
00abaf2187
commit
04271b0e4e
2 changed files with 21 additions and 6 deletions
|
@ -10964,6 +10964,8 @@ fn insert_into_with_parentheses() {
|
|||
Box::new(GenericDialect {}),
|
||||
]);
|
||||
dialects.verified_stmt("INSERT INTO t1 (id, name) (SELECT t2.id, t2.name FROM t2)");
|
||||
dialects.verified_stmt("INSERT INTO t1 (SELECT t2.id, t2.name FROM t2)");
|
||||
dialects.verified_stmt(r#"INSERT INTO t1 ("select", name) (SELECT t2.name FROM t2)"#);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue