appeared in the columns list. [ticket:1602]
- sql
+ - Fixed bug in two-phase transaction whereby commit() method
+ didn't set the full state which allows subsequent close()
+ call to succeed. [ticket:1603]
+
- Fixed the "numeric" paramstyle, which apparently is the
default paramstyle used by Informixdb.
This is used to cancel a Transaction without affecting the scope of
an enclosing transaction.
"""
-
if not self._parent.is_active:
return
if self._parent is self:
def _do_rollback(self):
self.connection._rollback_twophase_impl(self.xid, self._is_prepared)
- def commit(self):
+ def _do_commit(self):
self.connection._commit_twophase_impl(self.xid, self._is_prepared)
transaction = connection.begin_twophase()
connection.execute(users.insert(), user_id=2, user_name='user2')
transaction.commit()
+ transaction.close()
transaction = connection.begin_twophase()
connection.execute(users.insert(), user_id=3, user_name='user3')
connection.execute(users.insert(), user_id=4, user_name='user4')
transaction.prepare()
transaction.rollback()
-
+ transaction.close()
+
eq_(
connection.execute(select([users.c.user_id]).order_by(users.c.user_id)).fetchall(),
[(1,),(2,)]