OSDN Git Service

Fixed more parsing bugs in other CREATE statements as pointed out by TANIDA
authorMichael Meskes <meskes@postgresql.org>
Thu, 10 Feb 2005 08:06:35 +0000 (08:06 +0000)
committerMichael Meskes <meskes@postgresql.org>
Thu, 10 Feb 2005 08:06:35 +0000 (08:06 +0000)
Yutaka <tanida@sra.co.jp>.

src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/preproc/preproc.y

index 7c4e5fb..262a841 100644 (file)
@@ -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 <tanida@sra.co.jp> for pointing out all these problems.
        - Set ecpg version to 3.2.1.
 
index 03fdacd..0dba425 100644 (file)
@@ -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);
                        }
                ;