mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-31 03:07:20 +00:00
Merge pull request #94 from benesch/empty-create-table
Support CREATE TABLE with no columns
This commit is contained in:
commit
fdbf64c64d
2 changed files with 7 additions and 1 deletions
|
@ -928,6 +928,12 @@ fn parse_create_external_table() {
|
|||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_create_table_empty() {
|
||||
// Zero-column tables are weird, but supported by at least PostgreSQL.
|
||||
let _ = verified_stmt("CREATE TABLE t ()");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_alter_table_constraints() {
|
||||
check_one("CONSTRAINT address_pkey PRIMARY KEY (address_id)");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue