summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2013-05-31 11:52:31 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2013-05-31 11:55:48 -0400
commitc6f54ae434b40f0ddfce468d29663014ca5fc135 (patch)
treefaaadbcb9afa373cceb7eb3b833dc65fd513c4c4 /lib/sqlalchemy
parent77001c5a2d951764df19dab5a56a19e4a14e06d7 (diff)
downloadsqlalchemy-c6f54ae434b40f0ddfce468d29663014ca5fc135.tar.gz
Fixed a regression caused by [ticket:2682] whereby the
evaluation invoked by :meth:`.Query.update` and :meth:`.Query.delete` would hit upon unsupported ``True`` and ``False`` symbols which now appear due to the usage of ``IS``. [ticket:2737] Conflicts: doc/build/changelog/changelog_08.rst
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r--lib/sqlalchemy/orm/evaluator.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/sqlalchemy/orm/evaluator.py b/lib/sqlalchemy/orm/evaluator.py
index 0844e2f72..ba59e5071 100644
--- a/lib/sqlalchemy/orm/evaluator.py
+++ b/lib/sqlalchemy/orm/evaluator.py
@@ -40,6 +40,12 @@ class EvaluatorCompiler(object):
def visit_null(self, clause):
return lambda obj: None
+ def visit_false(self, clause):
+ return lambda obj: False
+
+ def visit_true(self, clause):
+ return lambda obj: True
+
def visit_column(self, clause):
if 'parentmapper' in clause._annotations:
key = clause._annotations['parentmapper'].\