Skip to content
This repository
Browse code

sqlite transactions now logged

  • Loading branch information...
commit cdb49fc2f3f66bbae81be837424dcb45602ea5e2 1 parent 7ba95bf
Gustavo Delfino authored
6  activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
@@ -238,15 +238,15 @@ def release_savepoint
238 238
       end
239 239
 
240 240
       def begin_db_transaction #:nodoc:
241  
-        @connection.transaction
  241
+        log('begin transaction',nil) { @connection.transaction }
242 242
       end
243 243
 
244 244
       def commit_db_transaction #:nodoc:
245  
-        @connection.commit
  245
+        log('commit transaction',nil) { @connection.commit }
246 246
       end
247 247
 
248 248
       def rollback_db_transaction #:nodoc:
249  
-        @connection.rollback
  249
+        log('rollback transaction',nil) { @connection.rollback }
250 250
       end
251 251
 
252 252
       # SCHEMA STATEMENTS ========================================

0 notes on commit cdb49fc

Please sign in to comment.
Something went wrong with that request. Please try again.