1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-29 10:41:53 +03:00

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.
This commit is contained in:
Tom Lane
2002-08-19 15:08:47 +00:00
parent 10b374aecf
commit 6ebc90b045
11 changed files with 73 additions and 267 deletions

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_target.c,v 1.87 2002/08/08 01:44:31 tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parse_target.c,v 1.88 2002/08/19 15:08:47 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -501,9 +501,6 @@ FigureColnameInternal(Node *node, char **name)
switch (nodeTag(node))
{
case T_Ident:
*name = ((Ident *) node)->name;
return 2;
case T_ColumnRef:
{
char *cname = strVal(llast(((ColumnRef *) node)->fields));