Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit712af72

Browse files
committed
Fix yacc failures in preproc.y.
1 parent5350ff2 commit712af72

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎src/interfaces/ecpg/preproc/preproc.y

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,8 @@ make_name(void)
329329
%type<str>DropTrigStmtTriggerOneEventTriggerEventsRuleActionStmt
330330
%type<str>TriggerActionTimeCreateTrigStmtDropPLangStmtPLangTrusted
331331
%type<str>CreatePLangStmtTriggerFuncArgsTriggerFuncArgsimple_select
332-
%type<str>ViewStmtLoadStmtCreatedbStmtcreatedb_opt_encoding
333-
%type<str>createdb_opt_locationopt_encodingOptInheritGeometric
332+
%type<str>ViewStmtLoadStmtCreatedbStmtcreatedb_opt_item
333+
%type<str>createdb_opt_listopt_encodingOptInheritGeometric
334334
%type<str>DropdbStmtClusterStmtgranteeRevokeStmtBitbit
335335
%type<str>GrantStmtprivilegesoperation_commalistoperationPosAllConst
336336
%type<str>opt_cursoropt_lmodeConstraintsSetStmtcomment_tgAllConst
@@ -2253,7 +2253,7 @@ LoadStmt: LOAD file_name
22532253

22542254
CreatedbStmt:CREATEDATABASEdatabase_nameWITHcreatedb_opt_list
22552255
{
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);
22572257
}
22582258
|CREATEDATABASEdatabase_name
22592259
{
@@ -2390,7 +2390,7 @@ OptimizableStmt: SelectStmt
23902390

23912391
/* This rule used 'opt_column_list' between 'relation_name' and 'insert_rest'
23922392
* 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
23942394
* conflict. So I just changed the rules 'InsertStmt' and 'insert_rest' to accept
23952395
* the same statements without any shift/reduce conflicts*/
23962396
InsertStmt:INSERTINTOrelation_nameinsert_rest
@@ -3550,7 +3550,7 @@ c_expr: attr
35503550
{$$ = cat_str(3, make_str("trim(trailing"),$4, make_str(")")); }
35513551
|TRIM'('trim_list')'
35523552
{$$ = cat_str(3, make_str("trim("),$3, make_str(")")); }
3553-
|'('SelectStmt')'
3553+
|'('select_no_parens')'
35543554
{$$ = cat_str(3, make_str("("),$2, make_str(")")); }
35553555
|EXISTS'('SelectStmt')'
35563556
{$$ = cat_str(3, make_str("exists("),$3, make_str(")")); }

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp