dynamodb2: Defer evaluation of the OR RHS in condition expr
This commit is contained in:
parent
108dc6b049
commit
0093a7992f
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