Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit efe2e9a

Browse files
committed
Add missing processing of OptTemp in CREATE IF NOT EXISTS variant
for typed tables. Noted by Robert Haas.
1 parent 5344945 commit efe2e9a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/parser/gram.y

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.716 2010/08/18 18:35:20 tgl Exp $
14+
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.717 2010/08/20 14:55:05 tgl Exp $
1515
*
1616
* HISTORY
1717
* AUTHOR DATE MAJOR EVENT
@@ -2252,6 +2252,7 @@ CreateStmt: CREATE OptTemp TABLE qualified_name '(' OptTableElementList ')'
22522252
OptTypedTableElementList OptWith OnCommitOption OptTableSpace
22532253
{
22542254
CreateStmt *n = makeNode(CreateStmt);
2255+
$7->istemp = $2;
22552256
n->relation = $7;
22562257
n->tableElts = $10;
22572258
n->ofTypename = makeTypeNameFromNameList($9);

0 commit comments

Comments
 (0)