mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-31 11:17:23 +00:00
Allow trailing comma in CREATE TABLE
At least MSSQL supports it, not sure about others.
This commit is contained in:
parent
8569a61fd0
commit
0407ed2b57
2 changed files with 12 additions and 11 deletions
|
@ -688,6 +688,12 @@ fn parse_create_table() {
|
|||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_create_table_trailing_comma() {
|
||||
let sql = "CREATE TABLE foo (bar int,)";
|
||||
all_dialects().one_statement_parses_to(sql, "CREATE TABLE foo (bar int)");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_create_external_table() {
|
||||
let sql = "CREATE EXTERNAL TABLE uk_cities (\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue