mirror of
https://github.com/postgres/postgres.git
synced 2025-04-25 21:42:33 +03:00
Fix for _copyUnique() suggested by Hiroshi Inoue
This commit is contained in:
parent
1c1cafe72f
commit
6e702210c2
@ -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)
|
|||||||
* 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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user