OSDN Git Service

Fixed bug in parsing of CREATE AS statement.
authorMichael Meskes <meskes@postgresql.org>
Wed, 9 Feb 2005 11:26:44 +0000 (11:26 +0000)
committerMichael Meskes <meskes@postgresql.org>
Wed, 9 Feb 2005 11:26:44 +0000 (11:26 +0000)
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/preproc/preproc.y

index 14a7c9a..7c4e5fb 100644 (file)
@@ -1902,5 +1902,9 @@ Tue Jan 25 13:47:45 CET 2005
 Wed Feb  2 16:35:27 CET 2005
 
        - Fixed bug in parsing of #line statement in declare section.
+       
+Wed Feb  9 12:24:03 CET 2005
+
+       - Fixed bug in parsing of CREATE AS statement.
        - Set ecpg version to 3.2.1.
 
index b70fa94..03fdacd 100644 (file)
@@ -1,4 +1,4 @@
-/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.305 2005/02/02 15:37:43 meskes Exp $ */
+/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.306 2005/02/09 11:26:44 meskes Exp $ */
 
 /* Copyright comment */
 %{
@@ -1580,7 +1580,7 @@ CreateAsStmt:  CREATE OptTemp TABLE qualified_name OptCreateAs WithOidsAs
                        if (FoundInto == 1)
                                mmerror(PARSE_ERROR, ET_ERROR, "CREATE TABLE / AS SELECT may not specify INTO");
 
-                       $$ = cat_str(8, make_str("create"), $2, make_str("table"), $4, $5, $6, $8);
+                       $$ = cat_str(7, make_str("create"), $2, make_str("table"), $4, $5, $6, $8);
                }
                ;