Skip to content

Commit

Permalink
Merge pull request #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 Original file line Diff line number Diff line change
Expand Up @@ -238,15 +238,15 @@ def release_savepoint
end end


def begin_db_transaction #:nodoc: def begin_db_transaction #:nodoc:
@connection.transaction log('begin transaction',nil) { @connection.transaction }
end end


def commit_db_transaction #:nodoc: def commit_db_transaction #:nodoc:
@connection.commit log('commit transaction',nil) { @connection.commit }
end end


def rollback_db_transaction #:nodoc: def rollback_db_transaction #:nodoc:
@connection.rollback log('rollback transaction',nil) { @connection.rollback }
end end


# SCHEMA STATEMENTS ======================================== # SCHEMA STATEMENTS ========================================
Expand Down

0 comments on commit 9e51400

Please sign in to comment.