File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ shared_ptr<bool_expr> bool_expr::factory(prod *p)
55
55
56
56
exists_predicate::exists_predicate (prod *p) : bool_expr(p)
57
57
{
58
- subquery = make_shared<query_spec>(p , scope);
58
+ subquery = make_shared<query_spec>(this , scope);
59
59
}
60
60
61
61
void exists_predicate::accept (prod_visitor *v)
@@ -71,9 +71,9 @@ void exists_predicate::out(std::ostream &out)
71
71
72
72
distinct_pred::distinct_pred (prod *p) : bool_binop(p)
73
73
{
74
- lhs = make_shared<column_reference>(p );
74
+ lhs = make_shared<column_reference>(this );
75
75
retry:
76
- rhs = make_shared<column_reference>(p );
76
+ rhs = make_shared<column_reference>(this );
77
77
if (lhs->type != rhs->type )
78
78
{ retries++; goto retry; }
79
79
}
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ table_subquery::table_subquery(prod *p, bool lateral)
37
37
: table_ref(p), is_lateral(lateral) {
38
38
ostringstream r;
39
39
r << " subq_" << instances++;
40
- query = make_shared<query_spec>(p , scope);
40
+ query = make_shared<query_spec>(this , scope);
41
41
string alias = r.str ();
42
42
relation *aliased_rel = &query->select_list ->derived_table ;
43
43
refs.push_back (make_shared<aliased_relation>(alias, aliased_rel));
@@ -121,7 +121,7 @@ from_clause::from_clause(prod *p) : prod(p) {
121
121
122
122
while (d6 () > 5 ) {
123
123
// add a lateral subquery
124
- reflist.push_back (make_shared<table_subquery>(p , true ));
124
+ reflist.push_back (make_shared<table_subquery>(this , true ));
125
125
for (auto r : reflist.back ()->refs )
126
126
scope->refs .push_back (&*r);
127
127
}
You can’t perform that action at this time.
0 commit comments