1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-11 04:22:52 +03:00

Fixed bug in parsing of CREATE AS statement.

This commit is contained in:
Michael Meskes
2005-02-09 11:28:21 +00:00
parent ae50aa7ee8
commit ef006ded8e

View File

@@ -1,4 +1,4 @@
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.303.4.1 2005/01/26 22:52:01 tgl Exp $ */ /* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.303.4.2 2005/02/09 11:28:21 meskes Exp $ */
/* Copyright comment */ /* Copyright comment */
%{ %{
@@ -1580,7 +1580,7 @@ CreateAsStmt: CREATE OptTemp TABLE qualified_name OptCreateAs WithOidsAs
if (FoundInto == 1) if (FoundInto == 1)
mmerror(PARSE_ERROR, ET_ERROR, "CREATE TABLE / AS SELECT may not specify INTO"); 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);
} }
; ;