lib/active_record/connection_adapters/oracle_enhanced_database_statements.rb
def insert_sql(sql, name = nil, pk = nil, id_value = nil, sequence_name = nil) #:nodoc:
        # if primary key value is already prefetched from sequence
        # or if there is no primary key
        if id_value || pk.nil?
          execute(sql, name)
          return id_value
        end

        sql_with_returning = sql + @connection.returning_clause(quote_column_name(pk))
        log(sql, name) do
          @connection.exec_with_returning(sql_with_returning)
        end
      end
# Executes an INSERT statement and returns the new record's ID
Executes an INSERT statement and returns the new record's ID
Executes an INSERT statement and returns the new record ' s ID
def insert_sql(sql, name = nil, pk = nil, id_value = nil, sequence_name = nil) 
        if id_value || pk.nil?
          execute(sql, name)
          return id_value
        end
        sql_with_returning = sql + @connection.returning_clause(quote_column_name(pk))
        log(sql, name) do
          @connection.exec_with_returning(sql_with_returning)
        end
      end
def insert_sql ( sql , name = nil , pk = nil , id_value = nil , sequence_name = nil ) if id_value || pk . nil? execute ( sql , name ) return id_value end sql_with_returning = sql + @connection . returning_clause ( quote_column_name ( pk ) ) log ( sql , name ) do @connection . exec_with_returning ( sql_with_returning ) end end
Executes an INSERT statement and returns the new record's ID
Executes an INSERT statement and returns the new record ' s ID
#:nodoc: # if primary key value is already prefetched from sequence # or if there is no primary key
sql
name
pk
id_value
sequence_name