server/ssplanner.py
changeset 8020 52e250f307b6
parent 8018 f01c80513274
child 8127 96d343a5e01b
equal deleted inserted replaced
8019:eb83c52ffa0c 8020:52e250f307b6
   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):