From: Michael Meskes Date: Fri, 10 Oct 2008 12:20:06 +0000 (+0000) Subject: Optional arguments should be optional. X-Git-Tag: REL8_3_5~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=603972f3e06c81318d5ab4314a376ce31dd3eb46;p=postgresql Optional arguments should be optional. --- diff --git a/src/interfaces/ecpg/preproc/preproc.y b/src/interfaces/ecpg/preproc/preproc.y index 2943581676..ef63a7a03c 100644 --- a/src/interfaces/ecpg/preproc/preproc.y +++ b/src/interfaces/ecpg/preproc/preproc.y @@ -1,4 +1,4 @@ -/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.359.2.5 2008/08/20 14:07:16 meskes Exp $ */ +/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.359.2.6 2008/10/10 12:20:06 meskes Exp $ */ /* Copyright comment */ %{ @@ -1007,7 +1007,7 @@ stmt: AlterDatabaseStmt { output_statement($1, 0, ECPGst_normal); } *****************************************************************************/ CreateRoleStmt: CREATE ROLE RoleId opt_with OptRoleList - { $$ = cat_str(4, make_str("create role"), $3, make_str("with"), $5); } + { $$ = cat_str(4, make_str("create role"), $3, $4, $5); } ; opt_with: WITH { $$ = make_str("with"); }