Flowdock
method

last_insert_id

Importance_0
Ruby on Rails latest stable (v4.0.2) - 0 notes - 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.

These similar methods exist in v4.0.2:

last_insert_id() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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
Register or log in to add new notes.