]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
changed type engine default comparison from identity to equality
authorAnts Aasma <ants.aasma@gmail.com>
Wed, 11 Jul 2007 22:46:51 +0000 (22:46 +0000)
committerAnts Aasma <ants.aasma@gmail.com>
Wed, 11 Jul 2007 22:46:51 +0000 (22:46 +0000)
lib/sqlalchemy/types.py

index d1ede61c50cf8ac4337468bcfee0d34182bd7397..07bc3c250739853eec6be9c86af16f28d281c7d7 100644 (file)
@@ -27,7 +27,7 @@ class AbstractType(object):
         return value
 
     def compare_values(self, x, y):
-        return x is y
+        return x == y
 
     def is_mutable(self):
         return False