Commit efe2e9a7 authored by Tom Lane's avatar Tom Lane

Add missing processing of OptTemp in CREATE IF NOT EXISTS variant

for typed tables.  Noted by Robert Haas.
parent 53449458
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.716 2010/08/18 18:35:20 tgl Exp $ * $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.717 2010/08/20 14:55:05 tgl Exp $
* *
* HISTORY * HISTORY
* AUTHOR DATE MAJOR EVENT * AUTHOR DATE MAJOR EVENT
...@@ -2252,6 +2252,7 @@ CreateStmt: CREATE OptTemp TABLE qualified_name '(' OptTableElementList ')' ...@@ -2252,6 +2252,7 @@ CreateStmt: CREATE OptTemp TABLE qualified_name '(' OptTableElementList ')'
OptTypedTableElementList OptWith OnCommitOption OptTableSpace OptTypedTableElementList OptWith OnCommitOption OptTableSpace
{ {
CreateStmt *n = makeNode(CreateStmt); CreateStmt *n = makeNode(CreateStmt);
$7->istemp = $2;
n->relation = $7; n->relation = $7;
n->tableElts = $10; n->tableElts = $10;
n->ofTypename = makeTypeNameFromNameList($9); n->ofTypename = makeTypeNameFromNameList($9);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment