# figure out tables in the various join clauses we have, because user-defined
# whereclauses that reference the same tables will be converted to use
# aliases of those tables
- self.to_alias = util.Set()
+ self.to_alias = util.HashSet()
[self.to_alias.append(f) for f in self.primaryjoin._get_from_objects()]
if self.secondaryjoin is not None:
[self.to_alias.append(f) for f in self.secondaryjoin._get_from_objects()]
#globalidentity().clear()
def testget(self):
- m = mapper(User, users, echo = True)
+ m = mapper(User, users, scope = "thread", echo = True)
self.assert_(m.get(19) is None)
u = m.get(7)
u2 = m.get(7)
self.assert_(u is u2)
+ identity_map.clear("thread")
+ u2 = m.get(7)
+ self.assert_(u is not u2)
def testload(self):
"""tests loading rows with a mapper and producing object instances"""