Optional arguments should be optional.
authorMichael Meskes <meskes@postgresql.org>
Fri, 10 Oct 2008 12:19:47 +0000 (12:19 +0000)
committerMichael Meskes <meskes@postgresql.org>
Fri, 10 Oct 2008 12:19:47 +0000 (12:19 +0000)
src/interfaces/ecpg/preproc/preproc.y

index 84d4f72502cd4d318bb8123bb6e5fcdc70bd1e17..4f4a518bedd947905658aa75667e5e1ebd42d423 100644 (file)
@@ -924,7 +924,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"); }