diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-01-08 19:09:02 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-01-08 19:09:02 +0000 |
commit | a4c73cc8ae154c3a54678fec7f2e11798ee25b7f (patch) | |
tree | 01cf9f02a30a33419a86aaac51e2fda3a72f10fe /lib/sqlalchemy/sql.py | |
parent | c691513dc887899e8d046b03a125dcf0ae17943e (diff) | |
download | sqlalchemy-a4c73cc8ae154c3a54678fec7f2e11798ee25b7f.tar.gz |
- the "op()" function is now treated as an "operation", rather than a "comparison".
the difference is, an operation produces a BinaryExpression from which further operations
can occur whereas comparison produces the more restrictive BooleanExpression
Diffstat (limited to 'lib/sqlalchemy/sql.py')
-rw-r--r-- | lib/sqlalchemy/sql.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql.py b/lib/sqlalchemy/sql.py index 98191552b..f6e23d583 100644 --- a/lib/sqlalchemy/sql.py +++ b/lib/sqlalchemy/sql.py @@ -562,7 +562,7 @@ class _CompareMixin(object): def between(self, cleft, cright): return _BooleanExpression(self, and_(self._check_literal(cleft), self._check_literal(cright)), 'BETWEEN') def op(self, operator): - return lambda other: self._compare(operator, other) + return lambda other: self._operate(operator, other) # and here come the math operators: def __add__(self, other): return self._operate('+', other) |