mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Partial fix for select distinct in subselect.
This commit is contained in:
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.39 1998/02/21 06:31:40 scrappy Exp $
|
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.40 1998/02/23 02:54:11 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -549,7 +549,10 @@ _copyUnique(Unique *from)
|
|||||||
* copy remainder of node
|
* copy remainder of node
|
||||||
* ----------------
|
* ----------------
|
||||||
*/
|
*/
|
||||||
|
if (newnode->uniqueAttr)
|
||||||
newnode->uniqueAttr = pstrdup(from->uniqueAttr);
|
newnode->uniqueAttr = pstrdup(from->uniqueAttr);
|
||||||
|
else
|
||||||
|
newnode->uniqueAttr = NULL;
|
||||||
newnode->uniqueAttrNum = from->uniqueAttrNum;
|
newnode->uniqueAttrNum = from->uniqueAttrNum;
|
||||||
Node_Copy(from, newnode, uniquestate);
|
Node_Copy(from, newnode, uniquestate);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user