mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
sqlite transactions now logged
motivation: http://stackoverflow.com/questions/6892630/sqlite-transactions-not-showing-in-test-log
This commit is contained in:
parent
7ba95bf747
commit
cdb49fc2f3
1 changed files with 3 additions and 3 deletions
|
@ -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 ========================================
|
||||
|
|
Loading…
Reference in a new issue