We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2598da commit 7aaa839Copy full SHA for 7aaa839
1 file changed
tests/sqlparser_postgres.rs
@@ -513,9 +513,13 @@ fn parse_create_table_with_defaults() {
513
}
514
515
#[test]
516
-fn parse_default_expr_parenthesized_then_cast() {
517
- // Infix operators like :: after parenthesized expression in DEFAULT
+fn parse_infix_after_parenthesized_column_option() {
+ // Cast
518
pg().verified_stmt("CREATE TABLE t (c TEXT DEFAULT (foo())::TEXT)");
519
+ // Chained casts
520
+ pg().verified_stmt("CREATE TABLE t (c TEXT DEFAULT (foo())::INT::TEXT)");
521
+ // Other infix operators
522
+ pg().verified_stmt("CREATE TABLE t (c INT DEFAULT (foo()) + 1)");
523
524
525
0 commit comments