1
0
Fork 0
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:
Gustavo Delfino 2011-08-06 16:05:45 -04:30
parent 7ba95bf747
commit cdb49fc2f3

View file

@ -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 ========================================