lib/active_record/connection_adapters/fdbsql/database_statements.rb
# Executes +sql+ statement in the context of this connection using
# +binds+ as the bind substitutes. +name+ is logged along with
# the executed +sql+ statement.
Executes +sql+ statement in the context of this connection using
+binds+ as the bind substitutes. +name+ is logged along with
the executed +sql+ statement.
Executes + sql + statement in the context of this connection using + binds + as the bind substitutes . + name + is logged along with the executed + sql + statement .
def exec_query(sql, name = 'SQL', binds = [])
          log(sql, name, binds) do
            result = without_prepared_statement?(binds) ? exec_no_cache(sql) :
                                                          exec_cache(sql, binds)
            result_array = result_as_array(result)
            if ActiveRecord::VERSION::MAJOR >= 4
              column_types = compute_field_types(result)
              ret = ActiveRecord::Result.new(result.fields, result_array, column_types)
            else
              ret = ActiveRecord::Result.new(result.fields, result_array)
            end
            result.clear
            ret
          end
        end
def exec_query ( sql , name = 'SQL' , binds = [ ] ) log ( sql , name , binds ) do result = without_prepared_statement? ( binds ) ? exec_no_cache ( sql ) : exec_cache ( sql , binds ) result_array = result_as_array ( result ) if ActiveRecord :: VERSION :: MAJOR >= 4 column_types = compute_field_types ( result ) ret = ActiveRecord :: Result . new ( result . fields , result_array , column_types ) else ret = ActiveRecord :: Result . new ( result . fields , result_array ) end result . clear ret end end
Executes +sql+ statement in the context of this connection using
+binds+ as the bind substitutes.
Executes + sql + statement in the context of this connection using + binds + as the bind substitutes .
sql
name
binds