diff options
author | Gustavo Delfino <gdelfino@gmail.com> | 2011-08-06 16:05:45 -0430 |
---|---|---|
committer | Gustavo Delfino <gdelfino@gmail.com> | 2011-08-06 16:05:45 -0430 |
commit | cdb49fc2f3f66bbae81be837424dcb45602ea5e2 (patch) | |
tree | b9d5ee51363b27c35db84f160d1a0e4011342ed3 /activerecord | |
parent | 7ba95bf7471a03a6c5db7bd9799cd660e57596f9 (diff) | |
download | rails-cdb49fc2f3f66bbae81be837424dcb45602ea5e2.tar.gz rails-cdb49fc2f3f66bbae81be837424dcb45602ea5e2.tar.bz2 rails-cdb49fc2f3f66bbae81be837424dcb45602ea5e2.zip |
sqlite transactions now logged
motivation: http://stackoverflow.com/questions/6892630/sqlite-transactions-not-showing-in-test-log
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb b/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb index e2a0f63393..ba65ff4357 100644 --- a/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb @@ -238,15 +238,15 @@ module ActiveRecord end def begin_db_transaction #:nodoc: - @connection.transaction + log('begin transaction',nil) { @connection.transaction } end def commit_db_transaction #:nodoc: - @connection.commit + log('commit transaction',nil) { @connection.commit } end def rollback_db_transaction #:nodoc: - @connection.rollback + log('rollback transaction',nil) { @connection.rollback } end # SCHEMA STATEMENTS ======================================== |