From: Ants Aasma Date: Wed, 11 Jul 2007 22:46:51 +0000 (+0000) Subject: changed type engine default comparison from identity to equality X-Git-Tag: rel_0_4_6~121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf48c34a9315cf7a06f90361a4242871f252dc6f;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git changed type engine default comparison from identity to equality --- diff --git a/lib/sqlalchemy/types.py b/lib/sqlalchemy/types.py index d1ede61c50..07bc3c2507 100644 --- a/lib/sqlalchemy/types.py +++ b/lib/sqlalchemy/types.py @@ -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