lib/arjdbc/jdbc/adapter.rb
# Take an id from the result of an INSERT query.
# @return [Integer, NilClass]
Take an id from the result of an INSERT query.
Take an id from the result of an INSERT query .
def last_inserted_id(result)
        if result.is_a?(Hash) || result.is_a?(ActiveRecord::Result)
          result.first.first[1] 
        else
          result
        end
      end
def last_inserted_id ( result ) if result . is_a? ( Hash ) || result . is_a? ( ActiveRecord :: Result ) result . first . first [ 1 ] else result end end
Take an id from the result of an INSERT query.
Take an id from the result of an INSERT query .
# .first = { "id"=>1 } .first = [ "id", 1 ]
None
Integer, NilClass
result
<not_specific>