Merge pull request #2295 from garrettheel/condition-expr-or-evaluation
dynamodb2: Defer evaluation of the OR RHS in condition expr
This commit is contained in:
commit
25ab3afc31
2 changed files with 31 additions and 2 deletions
|
|
@ -1004,8 +1004,7 @@ class OpOr(Op):
|
|||
|
||||
def expr(self, item):
|
||||
lhs = self.lhs.expr(item)
|
||||
rhs = self.rhs.expr(item)
|
||||
return lhs or rhs
|
||||
return lhs or self.rhs.expr(item)
|
||||
|
||||
|
||||
class Func(object):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue