# File lib/dbd/sqlite3/database.rb, line 81 def rollback() if @db.transaction_active? begin @db.rollback @db.transaction rescue Exception => e raise DBI::Warning, "Statements were not closed prior to rollback" end else raise DBI::ProgrammingError.new("No active transaction.") end end