diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-08-07 18:22:32 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-08-07 18:22:32 -0700 |
commit | 9e5140078fee49f4d1265dd4092f43d5e38128cb (patch) | |
tree | 20055e511f55a0940cef08c8c7bc0a415479db1c | |
parent | e746980507ed48e30ab35daf587bf9863d5b9261 (diff) | |
parent | cdb49fc2f3f66bbae81be837424dcb45602ea5e2 (diff) | |
download | rails-9e5140078fee49f4d1265dd4092f43d5e38128cb.tar.gz rails-9e5140078fee49f4d1265dd4092f43d5e38128cb.tar.bz2 rails-9e5140078fee49f4d1265dd4092f43d5e38128cb.zip |
Merge pull request #2451 from gdelfino/master
sqlite transactions in log files
-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 ======================================== |