File tree 2 files changed +17
-3
lines changed
2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -2274,12 +2274,13 @@ column_list_item
2274
2274
... getLocationObject (),
2275
2275
};
2276
2276
}
2277
- / table :(ident __ DOT )? __ STAR {
2277
+ / tbl :(ident __ DOT )? __ STAR {
2278
+ const table = tbl && tbl[0 ] || null
2278
2279
columnList .add (` select::${ table} ::(.*)` );
2279
2280
return {
2280
2281
expr: {
2281
2282
type: ' column_ref' ,
2282
- table: table && table[ 0 ] || null ,
2283
+ table,
2283
2284
column: ' *'
2284
2285
},
2285
2286
as: null ,
@@ -3119,6 +3120,19 @@ column_ref
3119
3120
... getLocationObject (),
3120
3121
};
3121
3122
}
3123
+ / tbl :(ident __ DOT )? __ STAR {
3124
+ const table = tbl && tbl[0 ] || null
3125
+ columnList .add (` select::${ table} ::(.*)` );
3126
+ return {
3127
+ expr: {
3128
+ type: ' column_ref' ,
3129
+ table,
3130
+ column: ' *'
3131
+ },
3132
+ as: null ,
3133
+ ... getLocationObject (),
3134
+ };
3135
+ }
3122
3136
/ col :column {
3123
3137
columnList .add (` select::null::${ col} ` );
3124
3138
return {
Original file line number Diff line number Diff line change @@ -4027,7 +4027,7 @@ cast_expr
4027
4027
... c,
4028
4028
}
4029
4029
}
4030
- / e :(func_call / aggr_func / window_func / case_expr / interval_expr / literal / column_ref_array_index / param ) __ c :cast_double_colon ? {
4030
+ / e :(func_call / aggr_func / window_func / case_expr / interval_expr / literal / column_ref_array_index / param ) __ c :cast_double_colon ? {
4031
4031
/* => {
4032
4032
type: 'cast';
4033
4033
expr: literal | aggr_func | func_call | case_expr | interval_expr | column_ref | param
You can’t perform that action at this time.
0 commit comments