Issue #3641957: Allow a transaction to roll back, not commit, when it is destructed uncommitted

Add OnDestruct::Commit (default, the deprecated behavior) and OnDestruct::Rollback, passed to Connection::startTransaction(). A Rollback transaction destructed while still active is rolled back, savepoints above it included, and so is one left open at shutdown. If a DDL statement on MySQL already committed it, a warning says so.

Closes #3641957

Merge request reports

Loading
Loading