summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2015-08-18 12:40:18 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2015-08-18 12:40:18 -0400
commit3f8f1f16bd9e284afee910a6036fcb0958a6c0c2 (patch)
tree287fb3608c459dea9af622492d50f5bdd5eddf57 /lib/sqlalchemy/sql
parentba1e959e5316a8c17ca80dca950574038bd650c4 (diff)
downloadsqlalchemy-3f8f1f16bd9e284afee910a6036fcb0958a6c0c2.tar.gz
- as the Concatenable mixin was changed to support calling down to
"super" instead of hardcoding to "self.type" for the default return value, the base Comparator was returning other_comparator.type. It's not clear what the rationale for this was, though in theory the base Comparator should possibly even throw an exception if the two types aren't the same (or of the same affinity?) . - mysql.SET was broken on this because the bitwise version adds "0" to the value to force an integer within column_expression, we are doing type_coerces here now in any case so that there is no type ambiguity for this operation
Diffstat (limited to 'lib/sqlalchemy/sql')
-rw-r--r--lib/sqlalchemy/sql/type_api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/type_api.py b/lib/sqlalchemy/sql/type_api.py
index 701e2a44a..c4e830b7f 100644
--- a/lib/sqlalchemy/sql/type_api.py
+++ b/lib/sqlalchemy/sql/type_api.py
@@ -91,7 +91,7 @@ class TypeEngine(Visitable):
boolean comparison or special SQL keywords like MATCH or BETWEEN.
"""
- return op, other_comparator.type
+ return op, self.type
def __reduce__(self):
return _reconstitute_comparator, (self.expr, )