mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-04 14:28:22 +00:00
Allow foreign table constraint without columns (#1608)
This commit is contained in:
parent
fac84d81ee
commit
6523dabcf8
3 changed files with 6 additions and 3 deletions
|
@ -4167,6 +4167,7 @@ fn parse_alter_table_constraints() {
|
|||
check_one("UNIQUE (id)");
|
||||
check_one("FOREIGN KEY (foo, bar) REFERENCES AnotherTable(foo, bar)");
|
||||
check_one("CHECK (end_date > start_date OR end_date IS NULL)");
|
||||
check_one("CONSTRAINT fk FOREIGN KEY (lng) REFERENCES othertable4");
|
||||
|
||||
fn check_one(constraint_text: &str) {
|
||||
match alter_table_op(verified_stmt(&format!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue