mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
Optional arguments should be optional.
This commit is contained in:
parent
68909e70f7
commit
cd8584611a
@ -1,4 +1,4 @@
|
||||
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.339.2.4 2008/06/04 12:27:30 meskes Exp $ */
|
||||
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.339.2.5 2008/10/10 12:19:47 meskes Exp $ */
|
||||
|
||||
/* Copyright comment */
|
||||
%{
|
||||
@ -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"); }
|
||||
|
Loading…
Reference in New Issue
Block a user