From: Michael Meskes Date: Fri, 10 Oct 2008 12:19:32 +0000 (+0000) Subject: Optional arguments should be optional. X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=f6d67b05ceb8549cb6b9ce53926a9e99aa088b62;p=users%2Fbernd%2Fpostgres.git Optional arguments should be optional. --- diff --git a/src/interfaces/ecpg/preproc/preproc.y b/src/interfaces/ecpg/preproc/preproc.y index b8cf4d9aae..f0637f6e40 100644 --- a/src/interfaces/ecpg/preproc/preproc.y +++ b/src/interfaces/ecpg/preproc/preproc.y @@ -913,7 +913,7 @@ stmt: AlterDatabaseStmt { output_statement($1, 0, connection); } *****************************************************************************/ 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"); }