Commit 6e702210 authored by Tatsuo Ishii's avatar Tatsuo Ishii

Fix for _copyUnique() suggested by Hiroshi Inoue

parent 1c1cafe7
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.77 1999/04/19 01:43:11 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.78 1999/04/27 09:49:36 ishii Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -514,7 +514,7 @@ _copyUnique(Unique *from) ...@@ -514,7 +514,7 @@ _copyUnique(Unique *from)
* copy remainder of node * copy remainder of node
* ---------------- * ----------------
*/ */
if (newnode->uniqueAttr) if (from->uniqueAttr)
newnode->uniqueAttr = pstrdup(from->uniqueAttr); newnode->uniqueAttr = pstrdup(from->uniqueAttr);
else else
newnode->uniqueAttr = NULL; newnode->uniqueAttr = NULL;
......
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