From: Michael Meskes Date: Fri, 10 Oct 2008 12:17:18 +0000 (+0000) Subject: Fixed "create role" parsing to accept optional "with" argument. X-Git-Tag: recoveryinfrav9~543 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=377139436227a48a76f4280523a80cb801b78953;p=users%2Fsimon%2Fpostgres.git Fixed "create role" parsing to accept optional "with" argument. --- diff --git a/src/interfaces/ecpg/ChangeLog b/src/interfaces/ecpg/ChangeLog index 1684d41daa..6f0bc35ff4 100644 --- a/src/interfaces/ecpg/ChangeLog +++ b/src/interfaces/ecpg/ChangeLog @@ -2378,6 +2378,10 @@ Wed, 20 Aug 2008 15:49:23 +0200 Tue, 07 Oct 2008 14:35:26 +0200 - Synced parser. + +Fri, 10 Oct 2008 14:03:05 +0200 + + - Fixed "create role" parsing to accept optional "with" argument. - Set pgtypes library version to 3.1. - Set compat library version to 3.1. - Set ecpg library version to 6.2. diff --git a/src/interfaces/ecpg/preproc/preproc.y b/src/interfaces/ecpg/preproc/preproc.y index c4f3209dd1..3cb8605c1a 100644 --- a/src/interfaces/ecpg/preproc/preproc.y +++ b/src/interfaces/ecpg/preproc/preproc.y @@ -1011,7 +1011,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"); }