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