jruby/activerecord-jdbc-adapter — Issue #130: SQLIte adapter suppresses logging of insert statements
Author: donv
Created: 2011-11-16 10:53:55+00:00
State: open

The SQLite adapter swallows log statements for inserts. Adding the following code solves the problem:

```Ruby
module ::ArJdbc
module SQLite3
def insert_sql(sql, name = nil, pk = nil, id_value = nil, sequence_name = nil)
log(sql, name) { @connection.execute_update(sql) }
id_value || last_insert_id
end
end
end
```