lib/knj/knjdb/drivers/sqlite3/knjdb_sqlite3.rb in knjrbfw-0.0.32 vs lib/knj/knjdb/drivers/sqlite3/knjdb_sqlite3.rb in knjrbfw-0.0.33
- old
+ new
@@ -54,10 +54,10 @@
else
return KnjDB_sqlite3_result.new(self, @conn.execute(string))
end
rescue => e
#Add SQL to the error message.
- raise e.class, "#{e.message}\n\nSQL: #{string}"
+ raise e.class, "#{e.message} (SQL: #{string})"
end
end
def escape(string)
#This code is taken directly from the documentation so we dont have to rely on the SQLite3::Database class. This way it can also be used with JRuby and IronRuby...
\ No newline at end of file