5
5
*
6
6
* Copyright (c) 1994, Regents of the University of California
7
7
*
8
- * $Id: geqo_eval.c,v 1.33 1999/02/16 00:40:59 momjian Exp $
8
+ * $Id: geqo_eval.c,v 1.34 1999/02/18 04:55:54 momjian Exp $
9
9
*
10
10
*-------------------------------------------------------------------------
11
11
*/
@@ -86,12 +86,12 @@ geqo_eval(Query *root, Gene *tour, int num_gene)
86
86
* gimme_tree
87
87
* this program presumes that only LEFT-SIDED TREES are considered!
88
88
*
89
- * 'outer_rel ' is the preceeding join
89
+ * 'old_rel ' is the preceeding join
90
90
*
91
91
* Returns a new join relation incorporating all joins in a left-sided tree.
92
92
*/
93
93
RelOptInfo *
94
- gimme_tree (Query * root , Gene * tour , int rel_count , int num_gene , RelOptInfo * outer_rel )
94
+ gimme_tree (Query * root , Gene * tour , int rel_count , int num_gene , RelOptInfo * old_rel )
95
95
{
96
96
RelOptInfo * inner_rel ; /* current relation */
97
97
int base_rel_index ;
@@ -115,16 +115,16 @@ gimme_tree(Query *root, Gene *tour, int rel_count, int num_gene, RelOptInfo *out
115
115
}
116
116
else
117
117
{ /* tree main part */
118
- if (!(new_rels = make_rels_by_clause_joins (root , outer_rel ,
118
+ if (!(new_rels = make_rels_by_clause_joins (root , old_rel ,
119
119
inner_rel -> joininfo ,
120
120
inner_rel -> relids )))
121
121
{
122
122
if (!BushyPlanFlag )
123
- new_rels = make_rels_by_clauseless_joins (outer_rel ,
123
+ new_rels = make_rels_by_clauseless_joins (old_rel ,
124
124
lcons (inner_rel ,NIL ));
125
125
else
126
- new_rels = make_rels_by_clauseless_joins (outer_rel ,
127
- lcons (outer_rel ,NIL ));
126
+ new_rels = make_rels_by_clauseless_joins (old_rel ,
127
+ lcons (old_rel ,NIL ));
128
128
}
129
129
130
130
/* process new_rel->pathlist */
@@ -168,7 +168,7 @@ gimme_tree(Query *root, Gene *tour, int rel_count, int num_gene, RelOptInfo *out
168
168
169
169
}
170
170
171
- return outer_rel ; /* tree finished ... */
171
+ return old_rel ; /* tree finished ... */
172
172
}
173
173
174
174
static RelOptInfo *
0 commit comments