]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
(no commit message)
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 9 Nov 2005 05:06:17 +0000 (05:06 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 9 Nov 2005 05:06:17 +0000 (05:06 +0000)
lib/sqlalchemy/objectstore.py

index e14c2fd7ad945d540f2e2ca53f55c200f997eea1..3d3b1b2cf8b8e19ab585627e7e841a02afa6f641 100644 (file)
@@ -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