# File lib/dbd/mysql/database.rb, line 242
242:         def commit
243:             if @have_transactions
244:                 self.do("COMMIT")
245:             else
246:                 raise NotSupportedError
247:             end
248:         rescue MyError => err
249:             error(err)
250:         end