summaryrefslogtreecommitdiff
path: root/src/backend/nodes/equalfuncs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-08-30 01:39:14 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-08-30 01:39:14 +0000
commit449a00fbbd49c00ba031432e8b6913a55e8ad1f6 (patch)
treec19cdeb09e444071accc7f4984d2067741988f86 /src/backend/nodes/equalfuncs.c
parent6253f9de6702fa73101997034b4fec038d547f6d (diff)
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.
Diffstat (limited to 'src/backend/nodes/equalfuncs.c')
-rw-r--r--src/backend/nodes/equalfuncs.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/backend/nodes/equalfuncs.c b/src/backend/nodes/equalfuncs.c
index 3d130c9524a..298d03aa9ba 100644
--- a/src/backend/nodes/equalfuncs.c
+++ b/src/backend/nodes/equalfuncs.c
@@ -22,7 +22,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/nodes/equalfuncs.c,v 1.329 2008/08/28 23:09:46 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/nodes/equalfuncs.c,v 1.330 2008/08/30 01:39:13 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1766,6 +1766,12 @@ _equalFuncCall(FuncCall *a, FuncCall *b)
}
static bool
+_equalAStar(A_Star *a, A_Star *b)
+{
+ return true;
+}
+
+static bool
_equalAIndices(A_Indices *a, A_Indices *b)
{
COMPARE_NODE_FIELD(lidx);
@@ -2531,6 +2537,9 @@ equal(void *a, void *b)
case T_FuncCall:
retval = _equalFuncCall(a, b);
break;
+ case T_A_Star:
+ retval = _equalAStar(a, b);
+ break;
case T_A_Indices:
retval = _equalAIndices(a, b);
break;