do not emit COMMIT/ROLLBACK twice