diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-08-11 22:50:35 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-08-11 22:50:35 +0000 |
commit | 3de91c18b51f0f983974dd0c369b424f9db03e84 (patch) | |
tree | 275544bec295f5c26925abc74a18db7e3f7faf4d /src | |
parent | aff700a16079b7f418f7557312eb281249c0e534 (diff) | |
download | postgresql-3de91c18b51f0f983974dd0c369b424f9db03e84.tar.gz postgresql-3de91c18b51f0f983974dd0c369b424f9db03e84.zip |
Fix broken parsing of CREATE TABLE AS (looks like a mis-sync with main
parser).
Diffstat (limited to 'src')
-rw-r--r-- | src/interfaces/ecpg/preproc/preproc.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/interfaces/ecpg/preproc/preproc.y b/src/interfaces/ecpg/preproc/preproc.y index a2e30af3e08..c6b25073908 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.293 2004/07/20 18:06:41 meskes Exp $ */ +/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.294 2004/08/11 22:50:35 tgl Exp $ */ /* Copyright comment */ %{ @@ -1546,14 +1546,14 @@ OptTableSpace: TABLESPACE name { $$ = cat2_str(make_str("tablespace"), $2); } * SELECT ... INTO. */ -CreateAsStmt: CREATE OptTemp TABLE qualified_name OptCreateAs WithOidsAs AS +CreateAsStmt: CREATE OptTemp TABLE qualified_name OptCreateAs WithOidsAs { FoundInto = 0; } SelectStmt { 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, make_str("as"), $9); + $$ = cat_str(8, make_str("create"), $2, make_str("table"), $4, $5, $6, $8); } ; |