diff options
| author | Ants Aasma <ants.aasma@gmail.com> | 2009-04-06 07:03:13 +0000 |
|---|---|---|
| committer | Ants Aasma <ants.aasma@gmail.com> | 2009-04-06 07:03:13 +0000 |
| commit | 9ffd3ddb00d782723f7faf7e6e67804751daafc8 (patch) | |
| tree | 2c2a23700c36e2db839f206c61e4d2e51e77b329 /lib | |
| parent | f77c9f950f361af9188598718bd61ae147b5d2f6 (diff) | |
| download | sqlalchemy-9ffd3ddb00d782723f7faf7e6e67804751daafc8.tar.gz | |
- Fixed the evaluator not being able to evaluate IS NULL clauses.
- Added evaluator tests to orm/alltests.py
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sqlalchemy/orm/evaluator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/evaluator.py b/lib/sqlalchemy/orm/evaluator.py index 4611dd91b..9076f610d 100644 --- a/lib/sqlalchemy/orm/evaluator.py +++ b/lib/sqlalchemy/orm/evaluator.py @@ -68,7 +68,7 @@ class EvaluatorCompiler(object): if operator is operators.is_: def evaluate(obj): return eval_left(obj) == eval_right(obj) - if operator is operators.isnot: + elif operator is operators.isnot: def evaluate(obj): return eval_left(obj) != eval_right(obj) elif operator in _straight_ops: |
