diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2008-08-30 01:39:14 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2008-08-30 01:39:14 +0000 |
commit | 449a00fbbd49c00ba031432e8b6913a55e8ad1f6 (patch) | |
tree | c19cdeb09e444071accc7f4984d2067741988f86 /src/backend/nodes/outfuncs.c | |
parent | 6253f9de6702fa73101997034b4fec038d547f6d (diff) | |
download | postgresql-449a00fbbd49c00ba031432e8b6913a55e8ad1f6.tar.gz postgresql-449a00fbbd49c00ba031432e8b6913a55e8ad1f6.zip |
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/outfuncs.c')
-rw-r--r-- | src/backend/nodes/outfuncs.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/backend/nodes/outfuncs.c b/src/backend/nodes/outfuncs.c index 91fa30ae232..882dd0f9f14 100644 --- a/src/backend/nodes/outfuncs.c +++ b/src/backend/nodes/outfuncs.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.336 2008/08/28 23:09:46 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.337 2008/08/30 01:39:14 tgl Exp $ * * NOTES * Every node type that can appear in stored rules' parsetrees *must* @@ -1990,6 +1990,12 @@ _outAConst(StringInfo str, A_Const *node) } static void +_outA_Star(StringInfo str, A_Star *node) +{ + WRITE_NODE_TYPE("A_STAR"); +} + +static void _outA_Indices(StringInfo str, A_Indices *node) { WRITE_NODE_TYPE("A_INDICES"); @@ -2467,6 +2473,9 @@ _outNode(StringInfo str, void *obj) case T_A_Const: _outAConst(str, obj); break; + case T_A_Star: + _outA_Star(str, obj); + break; case T_A_Indices: _outA_Indices(str, obj); break; |