Skip to content

Commit 2f20af6

Browse files
committed
Add suggested test case
1 parent 7aaa839 commit 2f20af6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/sqlparser_postgres.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,8 @@ fn parse_infix_after_parenthesized_column_option() {
520520
pg().verified_stmt("CREATE TABLE t (c TEXT DEFAULT (foo())::INT::TEXT)");
521521
// Other infix operators
522522
pg().verified_stmt("CREATE TABLE t (c INT DEFAULT (foo()) + 1)");
523+
// Cast with NOT NULL constraint
524+
pg().verified_stmt("CREATE TABLE t (c TEXT DEFAULT (foo())::TEXT NOT NULL)");
523525
}
524526

525527
#[test]

0 commit comments

Comments
 (0)