@@ -329,8 +329,8 @@ make_name(void)
329
329
%type <str> DropTrigStmt TriggerOneEvent TriggerEvents RuleActionStmt
330
330
%type <str> TriggerActionTime CreateTrigStmt DropPLangStmt PLangTrusted
331
331
%type <str> CreatePLangStmt TriggerFuncArgs TriggerFuncArg simple_select
332
- %type <str> ViewStmt LoadStmt CreatedbStmt createdb_opt_encoding
333
- %type <str> createdb_opt_location opt_encoding OptInherit Geometric
332
+ %type <str> ViewStmt LoadStmt CreatedbStmt createdb_opt_item
333
+ %type <str> createdb_opt_list opt_encoding OptInherit Geometric
334
334
%type <str> DropdbStmt ClusterStmt grantee RevokeStmt Bit bit
335
335
%type <str> GrantStmt privileges operation_commalist operation PosAllConst
336
336
%type <str> opt_cursor opt_lmode ConstraintsSetStmt comment_tg AllConst
@@ -2253,7 +2253,7 @@ LoadStmt: LOAD file_name
2253
2253
2254
2254
CreatedbStmt : CREATE DATABASE database_name WITH createdb_opt_list
2255
2255
{
2256
- $$ = cat_str(5 , make_str(" create database" ), $3 , make_str(" with" ), $5 , $6 );
2256
+ $$ = cat_str(4 , make_str(" create database" ), $3 , make_str(" with" ), $5 );
2257
2257
}
2258
2258
| CREATE DATABASE database_name
2259
2259
{
@@ -2390,7 +2390,7 @@ OptimizableStmt: SelectStmt
2390
2390
2391
2391
/* This rule used 'opt_column_list' between 'relation_name' and 'insert_rest'
2392
2392
* originally. When the second rule of 'insert_rest' was changed to use
2393
- * the new 'SelectStmt' rule (for INTERSECT and EXCEPT) it produced a shift/red uce
2393
+ * the new 'SelectStmt' rule (for INTERSECT and EXCEPT) it produced a shift/reduce
2394
2394
* conflict. So I just changed the rules 'InsertStmt' and 'insert_rest' to accept
2395
2395
* the same statements without any shift/reduce conflicts */
2396
2396
InsertStmt : INSERT INTO relation_name insert_rest
@@ -3550,7 +3550,7 @@ c_expr: attr
3550
3550
{ $$ = cat_str(3 , make_str(" trim(trailing" ), $4 , make_str(" )" )); }
3551
3551
| TRIM ' (' trim_list ' )'
3552
3552
{ $$ = cat_str(3 , make_str(" trim(" ), $3 , make_str(" )" )); }
3553
- | ' (' SelectStmt ' )'
3553
+ | ' (' select_no_parens ' )'
3554
3554
{ $$ = cat_str(3 , make_str(" (" ), $2 , make_str(" )" )); }
3555
3555
| EXISTS ' (' SelectStmt ' )'
3556
3556
{ $$ = cat_str(3 , make_str(" exists(" ), $3 , make_str(" )" )); }
0 commit comments