@@ -52,8 +52,8 @@ export type create_db_stmt_t = {
52
52
type : 'create' ,
53
53
keyword : 'database' | 'schema' ,
54
54
if_not_exists ?: 'if not exists' ,
55
- database ?: { db : string , schema : string } ;
56
- schema ?: { db : string , schema : string } ;
55
+ database ?: { db : ident_without_kw_type , schema : [ ident_without_kw_type ] } ;
56
+ schema ?: { db : ident_without_kw_type , schema : [ ident_without_kw_type ] } ;
57
57
create_definitions ?: create_db_definition
58
58
}
59
59
@@ -1200,7 +1200,7 @@ export type unary_expr_or_primary = jsonb_expr | unary_expr;
1200
1200
1201
1201
export type unary_operator = "!" | "-" | "+" | "~" ;
1202
1202
1203
- export type jsonb_expr = binary_expr | primary | binary_expr ;
1203
+ export type jsonb_expr = primary | binary_expr ;
1204
1204
1205
1205
export type string_constants_escape = { type : 'origin' ; value : string ; } ;
1206
1206
@@ -1354,7 +1354,7 @@ export type cast_expr = {
1354
1354
keyword : 'cast' ;
1355
1355
} & cast_double_colon | ( {
1356
1356
type : 'cast' ;
1357
- expr : literal | aggr_func | func_call | case_expr | interval_expr | column_ref | param
1357
+ expr : literal | jsonb_expr | aggr_func | func_call | case_expr | interval_expr | column_ref | param
1358
1358
| expr ;
1359
1359
keyword : 'cast' ;
1360
1360
} & cast_double_colon ) ;
@@ -1650,6 +1650,8 @@ type KW_TIME = never;
1650
1650
1651
1651
type KW_TIMESTAMP = never ;
1652
1652
1653
+ type KW_TIMESTAMPTZ = never ;
1654
+
1653
1655
type KW_TRUNCATE = never ;
1654
1656
1655
1657
type KW_USER = never ;
@@ -1921,6 +1923,8 @@ export type timezone = string[];;
1921
1923
1922
1924
1923
1925
1926
+
1927
+
1924
1928
export type time_type = data_type ;
1925
1929
1926
1930
0 commit comments