Permalink
Browse files

Merge pull request #2451 from gdelfino/master

sqlite transactions in log files
  • Loading branch information...
2 parents e746980 + cdb49fc commit 9e5140078fee49f4d1265dd4092f43d5e38128cb @tenderlove tenderlove committed Aug 8, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
@@ -238,15 +238,15 @@ def release_savepoint
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 ========================================

0 comments on commit 9e51400

Please sign in to comment.