Skip site navigation (1) Skip section navigation (2)

fix for _copyUnique()

From: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
To: hackers(at)postgresql(dot)org
Subject: fix for _copyUnique()
Date: 1999-04-27 09:59:03
Message-ID: 199904270959.SAA23781@srapc451.sra.co.jp (view raw or flat)
Thread:
Lists: pgsql-hackers
I have commited a fix for _copyUnique(nodes/copyfuncs.c) suggested by
Hiroshi Inoue. It seems obvious for me and passed regression tests.
--
Tatsuo Ishii

*** backend/nodes/copyfuncs.c.orig	Mon Apr 19 16:00:40 1999
--- backend/nodes/copyfuncs.c	Mon Apr 26 13:34:26 1999
***************
*** 514,520 ****
  	 *	copy remainder of node
  	 * ----------------
  	 */
! 	if (newnode->uniqueAttr)
  		newnode->uniqueAttr = pstrdup(from->uniqueAttr);
  	else
  		newnode->uniqueAttr = NULL;
--- 514,520 ----
  	 *	copy remainder of node
  	 * ----------------
  	 */
! 	if (from->uniqueAttr)
  		newnode->uniqueAttr = pstrdup(from->uniqueAttr);
  	else
  		newnode->uniqueAttr = NULL;


pgsql-hackers by date

Next:From: Jan WieckDate: 1999-04-27 10:05:49
Subject: Re: [HACKERS] numeric data type on 6.5
Previous:From: Peter MountDate: 1999-04-27 09:52:06
Subject: RE: [INTERFACES] JDBC and waiting for commit on a locked table in 6.4.2

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group