equal
deleted
inserted
replaced
230 lhs, rhs = relation.get_variable_parts() |
230 lhs, rhs = relation.get_variable_parts() |
231 select.append_selected(lhs.copy(select)) |
231 select.append_selected(lhs.copy(select)) |
232 select.append_selected(rhs.copy(select)) |
232 select.append_selected(rhs.copy(select)) |
233 select.set_where(relation.copy(select)) |
233 select.set_where(relation.copy(select)) |
234 if rqlst.where is not None: |
234 if rqlst.where is not None: |
235 select.set_where(rqlst.where.copy(select)) |
235 select.add_restriction(rqlst.where.copy(select)) |
236 if getattr(rqlst, 'having', None): |
236 if getattr(rqlst, 'having', None): |
237 select.set_having([x.copy(select) for x in rqlst.having]) |
237 select.set_having([x.copy(select) for x in rqlst.having]) |
238 return self._select_plan(plan, select, rqlst.solutions) |
238 return self._select_plan(plan, select, rqlst.solutions) |
239 |
239 |
240 def build_set_plan(self, plan, rqlst): |
240 def build_set_plan(self, plan, rqlst): |