Fix error in NOT in select

This commit is contained in:
Doug Blank 2016-01-17 13:21:16 -05:00
parent dfc0808167
commit 82d02c5c1b

View File

@ -1961,8 +1961,11 @@ class DbWriteBase(DbReadBase):
"""
if len(condition) == 2: # ["AND" [...]] | ["OR" [...]] | ["NOT" expr]
connector, exprs = condition
if connector in ["AND", "OR"]:
for expr in exprs:
evaluate_values(expr, item, db, table, env)
else: # "NOT"
evaluate_values(exprs, item, db, table, env)
elif len(condition) == 3: # (name, op, value)
(name, op, value) = condition
# just the ones we need for filter