method

last_insert_id

rails latest stable - Class: ActiveRecord::ConnectionAdapters::DB2Adapter

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1.2.6) is shown here.

last_insert_id()
private

No documentation available.

# File activerecord/lib/active_record/connection_adapters/db2_adapter.rb, line 194
        def last_insert_id
          row = select_one("with temp(id) as (values (identity_val_local())) select * from temp\n".strip)
          row['id'].to_i
        end