Commit d12e27a5 authored by Vadim B. Mikheev's avatar Vadim B. Mikheev

Changes for GROUP BY func_results:

AddGroupAttrToTlist() is not called from anywhere now.
parent c50d8474
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/tlist.c,v 1.1.1.1 1996/07/09 06:21:39 scrappy Exp $ * $Header: /cvsroot/pgsql/src/backend/optimizer/util/tlist.c,v 1.2 1997/04/05 06:39:58 vadim Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -267,6 +267,9 @@ match_varid(Var *test_var, List *tlist) ...@@ -267,6 +267,9 @@ match_varid(Var *test_var, List *tlist)
entry = lfirst(tl); entry = lfirst(tl);
tlvar = get_expr(entry); tlvar = get_expr(entry);
if ( !IsA (tlvar, Var) )
continue;
/* /*
* we test the original varno (instead of varno which might * we test the original varno (instead of varno which might
* be changed to INNER/OUTER. * be changed to INNER/OUTER.
...@@ -532,6 +535,7 @@ get_expr(TargetEntry *tle) ...@@ -532,6 +535,7 @@ get_expr(TargetEntry *tle)
void void
AddGroupAttrToTlist(List *tlist, List *grpCl) AddGroupAttrToTlist(List *tlist, List *grpCl)
{ {
#if 0
List *gl; List *gl;
int last_resdomno = length(tlist) + 1; int last_resdomno = length(tlist) + 1;
...@@ -553,6 +557,7 @@ AddGroupAttrToTlist(List *tlist, List *grpCl) ...@@ -553,6 +557,7 @@ AddGroupAttrToTlist(List *tlist, List *grpCl)
tlist = lappend(tlist, MakeTLE(r, (Node*)var)); tlist = lappend(tlist, MakeTLE(r, (Node*)var));
} }
} }
#endif
} }
/* was ExecTargetListLength() in execQual.c, /* was ExecTargetListLength() in execQual.c,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment