summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/util.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-08-16 13:25:46 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-08-16 13:25:46 -0400
commitfd4ac5b3171dacf2efba31c520c546e2422fba36 (patch)
treee7a98eba0ec6eca12c679294a6cae52994702da9 /lib/sqlalchemy/sql/util.py
parenta180239d8eda8c20ea39f4f5190abf51deba8b05 (diff)
downloadsqlalchemy-fd4ac5b3171dacf2efba31c520c546e2422fba36.tar.gz
- we're going to attempt to get the type/operator system to eat its own dogfood and
use the type-based comparator in all cases. will attempt to remove the _adapt_expression() method entirely as this represents an incomplete and redundant system (though it might be a lot faster)
Diffstat (limited to 'lib/sqlalchemy/sql/util.py')
-rw-r--r--lib/sqlalchemy/sql/util.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql/util.py b/lib/sqlalchemy/sql/util.py
index 6bfaf4b8c..35761def1 100644
--- a/lib/sqlalchemy/sql/util.py
+++ b/lib/sqlalchemy/sql/util.py
@@ -420,6 +420,7 @@ class Annotated(object):
element.c
self.__dict__ = element.__dict__.copy()
+ self.__dict__.pop('comparator', None)
self.__element = element
self._annotations = values
@@ -431,6 +432,7 @@ class Annotated(object):
def _with_annotations(self, values):
clone = self.__class__.__new__(self.__class__)
clone.__dict__ = self.__dict__.copy()
+ clone.__dict__.pop('comparator', None)
clone._annotations = values
return clone