Comment 10 for bug 132485

Revision history for this message
Stuart Bishop (stub) wrote :

I'd be happy with just adding prepare() as you describe and modifying commit() and rollback().

The default should certainly be off, as having it on by default is slow and dangerous if you don't have procedures in place to clean up prepared but uncommitted transactions.

Extending this beyond that with begin() or explicit tpc_commit()/tpc_rollback() methods would warrant some discussion on the mailing list. In particular, you would also need to expose the connection.xid() method to allow people to generate the transaction ids . There is also the option of just adding the transaction id as an argument to prepare() if people need to set it explicitly.