# File lib/dbd/sqlite/statement.rb, line 52 52: def execute 53: sql = @statement.bind(@params) 54: # XXX sqlite re-escapes this for us automatically, it's causing trouble with everything else. 55: # this will probably break in a horrible manner and I will be forced to "fix" it again. 56: sql.gsub!(/\\\\/) { '\\' } 57: DBI::DBD::SQLite.check_sql(sql) 58: 59: begin 60: unless @dbh.db.transaction_active? 61: @dbh.db.transaction 62: end 63: @result_set = @dbh.db.query(sql) 64: @dbh.commit if @dbh["AutoCommit"] 65: rescue Exception => e 66: raise DBI::DatabaseError, e.message 67: end 68: end