# File lib/dbd/mysql/database.rb, line 250
        def commit
            if @have_transactions
                self.do("COMMIT")
            else
                raise NotSupportedError
            end
        rescue MyError => err
            error(err)
        end