Non-transactional engines will use a query event with a COMMIT in it to signal that the transaction is over.