diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-08-19 15:08:47 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-08-19 15:08:47 +0000 |
commit | 6ebc90b0455ffe9dc0bcaf85185b2746008003f6 (patch) | |
tree | ac89e57df60a93047eb69e28074556c0c9acdb6f /src/backend/commands/copy.c | |
parent | 10b374aecfb50365eeb93e3434a77729d7a89541 (diff) |
Remove Ident nodetype in favor of using String nodes; this fixes some
latent wrong-struct-type bugs and makes the coding style more uniform,
since the majority of places working with lists of column names were
already using Strings not Idents. While at it, remove vestigial
support for Stream node type, and otherwise-unreferenced nodes.h entries
for T_TupleCount and T_BaseNode.
NB: full recompile is recommended due to changes of Node type numbers.
This shouldn't force an initdb though.
Diffstat (limited to 'src/backend/commands/copy.c')
-rw-r--r-- | src/backend/commands/copy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/copy.c b/src/backend/commands/copy.c index afe08a74a69..2751fe01d9e 100644 --- a/src/backend/commands/copy.c +++ b/src/backend/commands/copy.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.164 2002/08/19 00:40:14 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.165 2002/08/19 15:08:46 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1513,7 +1513,7 @@ CopyGetAttnums(Relation rel, List *attnamelist) foreach(l, attnamelist) { - char *name = ((Ident *) lfirst(l))->name; + char *name = strVal(lfirst(l)); int attnum; /* Lookup column name, elog on failure */ |