- TLEngine raises notimplemented for two-phase
self.reset()
def begin_twophase(self, xid=None):
+ raise NotImplementedError("Two phase transactions not yet implemented for 'threadlocal' strategy")
+
+ def _dont_begin_twophase(self, xid=None):
if self.__tcount == 0:
self.__transaction = self.get_connection()
self.__trans = self.__transaction._begin_twophase(xid=xid)
mapper(Address, addresses)
engine2 = create_engine(testbase.db.url)
- sess = create_session(transactional=False, autoflush=False, twophase=False)
+ sess = create_session(transactional=False, autoflush=False, twophase=True)
sess.bind_mapper(User, testbase.db)
sess.bind_mapper(Address, engine2)
sess.begin()