From fd4ac5b3171dacf2efba31c520c546e2422fba36 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Thu, 16 Aug 2012 13:25:46 -0400 Subject: - 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) --- lib/sqlalchemy/sql/util.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/sqlalchemy/sql/util.py') 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 -- cgit v1.2.1