Skip to content

Commit d85d336

Browse files
Extended test coverage
1 parent 27acd40 commit d85d336

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/sqlparser_postgres.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5762,6 +5762,13 @@ fn parse_create_unlogged_table() {
57625762
}
57635763
_ => unreachable!(),
57645764
}
5765+
5766+
// Negative test: UNLOGGED without TABLE should error
5767+
let res = pg().parse_sql_statements("CREATE UNLOGGED VIEW v AS SELECT 1");
5768+
assert!(
5769+
res.is_err(),
5770+
"CREATE UNLOGGED should only be followed by TABLE"
5771+
);
57655772
}
57665773

57675774
#[test]

0 commit comments

Comments
 (0)