don't emit COMMIT/ROLLBACK twice