mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-23 23:44:07 +00:00
Error on dangling NO
in CREATE SEQUENCE
options (#1104)
This commit is contained in:
parent
3a6d3ecba2
commit
498708c463
2 changed files with 8 additions and 4 deletions
|
@ -276,6 +276,11 @@ fn parse_create_sequence() {
|
|||
sql6,
|
||||
"CREATE TEMPORARY SEQUENCE IF NOT EXISTS name3 INCREMENT 1 NO MINVALUE MAXVALUE 20 OWNED BY NONE",
|
||||
);
|
||||
|
||||
assert!(matches!(
|
||||
pg().parse_sql_statements("CREATE SEQUENCE foo INCREMENT 1 NO MINVALUE NO"),
|
||||
Err(ParserError::ParserError(_))
|
||||
));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue