summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/operators.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-11-16 15:53:14 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2010-11-16 15:53:14 -0500
commit041a329e69f6aa60bdd2f3fb87b5172481806c4a (patch)
tree30df0342ad2499d30964c70c6f2bddb9dfede714 /lib/sqlalchemy/sql/operators.py
parent40d5a32e59a49075129211358f00e857dac73885 (diff)
downloadsqlalchemy-041a329e69f6aa60bdd2f3fb87b5172481806c4a.tar.gz
- adapt initial patch from [ticket:1917] to current tip
- raise TypeError for immutability
Diffstat (limited to 'lib/sqlalchemy/sql/operators.py')
-rw-r--r--lib/sqlalchemy/sql/operators.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/operators.py b/lib/sqlalchemy/sql/operators.py
index 6f70b1778..67830f7cf 100644
--- a/lib/sqlalchemy/sql/operators.py
+++ b/lib/sqlalchemy/sql/operators.py
@@ -83,7 +83,7 @@ def desc_op(a):
def asc_op(a):
return a.asc()
-_commutative = set([eq, ne, add, mul])
+_commutative = set([eq, ne, add, mul, and_])
def is_commutative(op):
return op in _commutative