From 7b26423d9008f5f67db342e5bd06e492535a6d68 Mon Sep 17 00:00:00 2001 From: Salvo 'LtWorf' Tomaselli Date: Wed, 11 Nov 2015 16:35:49 +0100 Subject: [PATCH] Typo in variable name --- relational/optimizations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relational/optimizations.py b/relational/optimizations.py index b36a70a..3b5886d 100644 --- a/relational/optimizations.py +++ b/relational/optimizations.py @@ -478,7 +478,7 @@ def select_union_intersect_subtract(n): Removing a O(n²) operation like the union''' changes = 0 if n.name in (UNION, INTERSECTION, DIFFERENCE) and n.left.name == SELECTION and n.right.name == SELECTION and n.left.child == n.right.child: - cahnges = 1 + changes = 1 d = {UNION: 'or', INTERSECTION: 'and', DIFFERENCE: 'and not'} op = d[n.name]