From 449a00fbbd49c00ba031432e8b6913a55e8ad1f6 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 30 Aug 2008 01:39:14 +0000 Subject: Fix the raw-parsetree representation of star (as in SELECT * FROM or SELECT foo.*) so that it cannot be confused with a quoted identifier "*". Instead create a separate node type A_Star to represent this notation. Per pgsql-hackers discussion of 2007-Sep-27. --- src/backend/nodes/copyfuncs.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/backend/nodes/copyfuncs.c') diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c index 4e984719d3d..67a25500dac 100644 --- a/src/backend/nodes/copyfuncs.c +++ b/src/backend/nodes/copyfuncs.c @@ -15,7 +15,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/nodes/copyfuncs.c,v 1.402 2008/08/28 23:09:45 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/nodes/copyfuncs.c,v 1.403 2008/08/30 01:39:13 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1697,6 +1697,14 @@ _copyFuncCall(FuncCall *from) return newnode; } +static A_Star * +_copyAStar(A_Star *from) +{ + A_Star *newnode = makeNode(A_Star); + + return newnode; +} + static A_Indices * _copyAIndices(A_Indices *from) { @@ -3589,6 +3597,9 @@ copyObject(void *from) case T_FuncCall: retval = _copyFuncCall(from); break; + case T_A_Star: + retval = _copyAStar(from); + break; case T_A_Indices: retval = _copyAIndices(from); break; -- cgit v1.2.3