We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a6609b commit 65a9d7bCopy full SHA for 65a9d7b
tests/sqlparser_postgres.rs
@@ -5578,6 +5578,13 @@ fn parse_create_unlogged_table() {
5578
}
5579
_ => unreachable!(),
5580
5581
+
5582
+ // Negative test: UNLOGGED without TABLE should error
5583
+ let res = pg().parse_sql_statements("CREATE UNLOGGED VIEW v AS SELECT 1");
5584
+ assert!(
5585
+ res.is_err(),
5586
+ "CREATE UNLOGGED should only be followed by TABLE"
5587
+ );
5588
5589
5590
#[test]
0 commit comments