Module: ActiveRecord::ConnectionAdapters::Savepoints

Defined in:
lib/active_record/connection_adapters/ibm_db_adapter.rb

Instance Method Summary collapse

Instance Method Details

#create_savepoint(name = current_savepoint_name) ⇒ Object



503
504
505
506
507
508
509
# File 'lib/active_record/connection_adapters/ibm_db_adapter.rb', line 503

def create_savepoint(name = current_savepoint_name)
  puts_log 'create_savepoint'
  # Turns off auto-committing
  auto_commit_off
  # Create savepoint
  internal_execute("SAVEPOINT #{name} ON ROLLBACK RETAIN CURSORS", 'TRANSACTION')
end