summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2007-01-08 19:09:02 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2007-01-08 19:09:02 +0000
commita4c73cc8ae154c3a54678fec7f2e11798ee25b7f (patch)
tree01cf9f02a30a33419a86aaac51e2fda3a72f10fe /lib/sqlalchemy/sql.py
parentc691513dc887899e8d046b03a125dcf0ae17943e (diff)
downloadsqlalchemy-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.py2
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)