summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/objectstore.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2005-11-09 05:06:17 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2005-11-09 05:06:17 +0000
commit521689fdab3772e8aba36aab76abc3093fb6b42a (patch)
tree51321826f2dec2c6779adc3743290277fecda11d /lib/sqlalchemy/objectstore.py
parent2c62a822970df3d3d91a0a6d399b891d0640f818 (diff)
downloadsqlalchemy-521689fdab3772e8aba36aab76abc3093fb6b42a.tar.gz
Diffstat (limited to 'lib/sqlalchemy/objectstore.py')
-rw-r--r--lib/sqlalchemy/objectstore.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/objectstore.py b/lib/sqlalchemy/objectstore.py
index e14c2fd7a..3d3b1b2cf 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