Fix a transaction error that was holding back MySQL tests

I haven't run the whole test suite yet, but this should decrease some-to-all of the MySQL failures, and we can go from there.

@jwm your review and merge very much appreciated.