From 2ceaa3e1db28e766a27e64c2ab96eabab91bb203 Mon Sep 17 00:00:00 2001 From: Salvo 'LtWorf' Tomaselli Date: Wed, 12 Aug 2020 17:35:55 +0200 Subject: [PATCH] The final rename --- relational/optimizations.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/relational/optimizations.py b/relational/optimizations.py index ad4e735..32a078e 100644 --- a/relational/optimizations.py +++ b/relational/optimizations.py @@ -490,10 +490,10 @@ def selection_and_product(n: parser.Node, rels: Dict[str, Relation]) -> Tuple[pa r_fields = False # has fields in left? for j in set(i).difference(sel_op): - j = j.split('.')[0] - if j in l_attr: # Field in left + t = j.split('.')[0] + if t in l_attr: # Field in left l_fields = True - if j in r_attr: # Field in right + if t in r_attr: # Field in right r_fields = True if l_fields and not r_fields: