OSDN Git Service

Fix typo in _copyAlterUserSetStmt.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 13 May 2002 20:39:43 +0000 (20:39 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 13 May 2002 20:39:43 +0000 (20:39 +0000)
src/backend/nodes/copyfuncs.c

index 3801d40..a3751d3 100644 (file)
@@ -15,7 +15,7 @@
  * Portions Copyright (c) 1994, Regents of the University of California
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.184 2002/05/12 23:43:02 tgl Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.185 2002/05/13 20:39:43 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -2468,7 +2468,7 @@ _copyAlterUserSetStmt(AlterUserSetStmt *from)
        if (from->user)
                newnode->user = pstrdup(from->user);
        if (from->variable)
-               newnode->user = pstrdup(from->variable);
+               newnode->variable = pstrdup(from->variable);
        Node_Copy(from, newnode, value);
 
        return newnode;