Skip to content

Commit

Permalink
Merge pull request rails#2451 from gdelfino/master
Browse files Browse the repository at this point in the history
sqlite transactions in log files
  • Loading branch information
tenderlove committed Aug 8, 2011
2 parents e746980 + cdb49fc commit 9e51400
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 ========================================
Expand Down

0 comments on commit 9e51400

Please sign in to comment.