required changes to copyfuncs/equalfuncs.
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.163 2002/08/15 16:36:02 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.164 2002/08/19 00:40:14 tgl Exp $
*
*-------------------------------------------------------------------------
*/
foreach(l, attnamelist)
{
- char *name = strVal(lfirst(l));
+ char *name = ((Ident *) lfirst(l))->name;
int attnum;
/* Lookup column name, elog on failure */
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.202 2002/08/19 00:11:53 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.203 2002/08/19 00:40:14 tgl Exp $
*
*-------------------------------------------------------------------------
*/
CopyStmt *newnode = makeNode(CopyStmt);
Node_Copy(from, newnode, relation);
+ Node_Copy(from, newnode, attlist);
newnode->is_from = from->is_from;
if (from->filename)
newnode->filename = pstrdup(from->filename);
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.151 2002/08/19 00:11:53 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.152 2002/08/19 00:40:14 tgl Exp $
*
*-------------------------------------------------------------------------
*/
{
if (!equal(a->relation, b->relation))
return false;
+ if (!equal(a->attlist, b->attlist))
+ return false;
if (a->is_from != b->is_from)
return false;
if (!equalstr(a->filename, b->filename))
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: parsenodes.h,v 1.199 2002/08/15 16:36:07 momjian Exp $
+ * $Id: parsenodes.h,v 1.200 2002/08/19 00:40:15 tgl Exp $
*
*-------------------------------------------------------------------------
*/
{
NodeTag type;
RangeVar *relation; /* the relation to copy */
- List *attlist;
+ List *attlist; /* List of Ident nodes, or NIL for all */
bool is_from; /* TO or FROM */
char *filename; /* if NULL, use stdin/stdout */
List *options; /* List of DefElem nodes */