diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-05-31 11:52:31 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-05-31 11:55:48 -0400 |
| commit | c6f54ae434b40f0ddfce468d29663014ca5fc135 (patch) | |
| tree | faaadbcb9afa373cceb7eb3b833dc65fd513c4c4 /lib/sqlalchemy | |
| parent | 77001c5a2d951764df19dab5a56a19e4a14e06d7 (diff) | |
| download | sqlalchemy-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.py | 6 |
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'].\ |
