From efe2e9a75897dbe1270b16bf93ce5d526b4c1fe8 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 20 Aug 2010 14:55:05 +0000 Subject: [PATCH] Add missing processing of OptTemp in CREATE IF NOT EXISTS variant for typed tables. Noted by Robert Haas. --- src/backend/parser/gram.y | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y index 74a799f3e8..1aa7d2b11c 100644 --- a/src/backend/parser/gram.y +++ b/src/backend/parser/gram.y @@ -11,7 +11,7 @@ * * * 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 * AUTHOR DATE MAJOR EVENT @@ -2252,6 +2252,7 @@ CreateStmt: CREATE OptTemp TABLE qualified_name '(' OptTableElementList ')' OptTypedTableElementList OptWith OnCommitOption OptTableSpace { CreateStmt *n = makeNode(CreateStmt); + $7->istemp = $2; n->relation = $7; n->tableElts = $10; n->ofTypename = makeTypeNameFromNameList($9); -- 2.40.0