summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-04-19 19:33:51 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-04-19 19:33:51 +0000
commitd1fa8fe3272de79f120d9cf5e9e4a7f69bbcf343 (patch)
tree5435b5d9036f115c99ee86520c0ee554ada1adcd /lib/sqlalchemy/sql.py
parent33f87bd0f5440028c4b1c5658dc9117ffc354b81 (diff)
downloadsqlalchemy-d1fa8fe3272de79f120d9cf5e9e4a7f69bbcf343.tar.gz
fixed up expunge() and the continuing circular refs in attributes, added a unit test for the whole thing
Diffstat (limited to 'lib/sqlalchemy/sql.py')
-rw-r--r--lib/sqlalchemy/sql.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql.py b/lib/sqlalchemy/sql.py
index 02e1619a1..1af02faac 100644
--- a/lib/sqlalchemy/sql.py
+++ b/lib/sqlalchemy/sql.py
@@ -131,7 +131,8 @@ def not_(clause):
def between_(ctest, cleft, cright):
""" returns BETWEEN predicate clause (clausetest BETWEEN clauseleft AND clauseright) """
return BooleanExpression(ctest, and_(cleft, cright), 'BETWEEN')
-
+between = between_
+
def cast(clause, totype, **kwargs):
""" returns CAST function CAST(clause AS totype)
Use with a sqlalchemy.types.TypeEngine object, i.e
@@ -517,6 +518,8 @@ class CompareMixin(object):
return Label(name, self, self.type)
def distinct(self):
return CompoundClause(None,"DISTINCT", self)
+ def between(self, cleft, cright):
+ return between_(self, cleft, cright)
def op(self, operator):
return lambda other: self._compare(operator, other)
# and here come the math operators: