Correct optimization over selection and product

This commit is contained in:
Salvo 'LtWorf' Tomaselli
2016-04-19 17:47:36 +02:00
parent fb643bd26d
commit 4d1b610605
2 changed files with 2 additions and 1 deletions

View File

@@ -573,7 +573,7 @@ def selection_and_product(n, rels):
i contains attributes belonging to Q and l contains attributes belonging to both'''
changes = 0
if n.name == SELECTION and n.child.name in (PRODUCT, JOIN, JOIN_LEFT, JOIN_RIGHT, JOIN_FULL):
if n.name == SELECTION and n.child.name in (PRODUCT, JOIN):
l_attr = n.child.left.result_format(rels)
r_attr = n.child.right.result_format(rels)