From d32b3aec52ed2284b7547927a161de0ca2c2ea72 Mon Sep 17 00:00:00 2001 From: Michael Meskes Date: Wed, 9 Feb 2005 11:26:44 +0000 Subject: [PATCH] Fixed bug in parsing of CREATE AS statement. --- src/interfaces/ecpg/ChangeLog | 4 ++++ src/interfaces/ecpg/preproc/preproc.y | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/interfaces/ecpg/ChangeLog b/src/interfaces/ecpg/ChangeLog index 14a7c9af25..7c4e5fbf78 100644 --- a/src/interfaces/ecpg/ChangeLog +++ b/src/interfaces/ecpg/ChangeLog @@ -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. diff --git a/src/interfaces/ecpg/preproc/preproc.y b/src/interfaces/ecpg/preproc/preproc.y index b70fa94872..03fdacd9ea 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.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); } ;