From: Mike Bayer Date: Wed, 9 Nov 2005 05:06:17 +0000 (+0000) Subject: (no commit message) X-Git-Tag: rel_0_1_0~362 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=521689fdab3772e8aba36aab76abc3093fb6b42a;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git --- diff --git a/lib/sqlalchemy/objectstore.py b/lib/sqlalchemy/objectstore.py index e14c2fd7ad..3d3b1b2cf8 100644 --- a/lib/sqlalchemy/objectstore.py +++ b/lib/sqlalchemy/objectstore.py @@ -39,7 +39,7 @@ def get_id_key(ident, class_, table): may be synonymous with the table argument or can be a larger construct containing that table. return value: a tuple object which is used as an identity key. """ - return (class_, table, tuple(ident)) + return (class_, repr(table), tuple(ident)) def get_row_key(row, class_, table, primary_keys): """returns an identity-map key for use in storing/retrieving an item from the identity map, given a result set row. @@ -52,7 +52,7 @@ def get_row_key(row, class_, table, primary_keys): may be synonymous with the table argument or can be a larger construct containing that table. return value: a tuple object which is used as an identity key. """ - return (class_, table, tuple([row[column] for column in primary_keys])) + return (class_, repr(table), tuple([row[column] for column in primary_keys])) def begin(): """begins a new UnitOfWork transaction. the next commit will affect only