From: Michael Meskes Date: Thu, 10 Feb 2005 08:06:35 +0000 (+0000) Subject: Fixed more parsing bugs in other CREATE statements as pointed out by TANIDA X-Git-Tag: REL8_1_0BETA1~1396 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7e786a82ca5ea1c4889cc34031d6dc8c6342cbd3;p=postgresql Fixed more parsing bugs in other CREATE statements as pointed out by TANIDA Yutaka . --- diff --git a/src/interfaces/ecpg/ChangeLog b/src/interfaces/ecpg/ChangeLog index 7c4e5fbf78..262a841c00 100644 --- a/src/interfaces/ecpg/ChangeLog +++ b/src/interfaces/ecpg/ChangeLog @@ -1906,5 +1906,10 @@ Wed Feb 2 16:35:27 CET 2005 Wed Feb 9 12:24:03 CET 2005 - Fixed bug in parsing of CREATE AS statement. + +Thu Feb 10 09:03:56 CET 2005 + + - Fixed more parsing bugs in other CREATE statements. Thanks to TANIDA + Yutaka for pointing out all these problems. - Set ecpg version to 3.2.1. diff --git a/src/interfaces/ecpg/preproc/preproc.y b/src/interfaces/ecpg/preproc/preproc.y index 03fdacd9ea..0dba4251a0 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.306 2005/02/09 11:26:44 meskes Exp $ */ +/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.307 2005/02/10 08:06:35 meskes Exp $ */ /* Copyright comment */ %{ @@ -1621,7 +1621,7 @@ CreateAsElement: ColId { $$ = $1; } *****************************************************************************/ CreateSeqStmt: CREATE OptTemp SEQUENCE qualified_name OptSeqList - { $$ = cat_str(4, make_str("create"), $2, make_str("sequence"), $4, $5); } + { $$ = cat_str(5, make_str("create"), $2, make_str("sequence"), $4, $5); } ; AlterSeqStmt: ALTER SEQUENCE qualified_name OptSeqList @@ -2705,7 +2705,7 @@ DropdbStmt: DROP DATABASE database_name CreateDomainStmt: CREATE DOMAIN_P any_name opt_as Typename ColQualList { - $$ = cat_str(55555, make_str("create domain"), $3, $4, $5, $6); + $$ = cat_str(5, make_str("create domain"), $3, $4, $5, $6); } ;