From 521689fdab3772e8aba36aab76abc3093fb6b42a Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 9 Nov 2005 05:06:17 +0000 Subject: [PATCH] --- lib/sqlalchemy/objectstore.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.2