lib/arjdbc/jdbc/adapter.rb
# Executes the SQL statement in the context of this connection.
# The return value from this method depends on the SQL type (whether
# it's a SELECT, INSERT etc.). For INSERTs a generated id might get
# returned while for UPDATE statements the affected row count.
# Please note that this method returns "raw" results (in an array) for
# statements that return a result set, while {#exec_query} is expected to
# return a `ActiveRecord::Result` (since AR 3.1).
# @note This method does not use prepared statements.
# @note The method does not emulate various "native" `execute` results on MRI.
# @see #exec_query
# @see #exec_insert
# @see #exec_update
Executes the SQL statement in the context of this connection.
The return value from this method depends on the SQL type (whether
it's a SELECT, INSERT etc.). For INSERTs a generated id might get
returned while for UPDATE statements the affected row count.
Please note that this method returns "raw" results (in an array) for
statements that return a result set, while {#exec_query} is expected to
return a `ActiveRecord::Result` (since AR 3.1).
Executes the SQL statement in the context of this connection . The return value from this method depends on the SQL type ( whether it ' s a SELECT INSERT etc . ) . For INSERTs a generated id might get returned while for UPDATE statements the affected row count . Please note that this method returns " raw " results ( in an array ) for statements that return a result set while { #exec_query } is expected to return a ` ActiveRecord :: Result ` ( since AR 3 . 1 ) .
def execute(sql, name = nil, binds = nil)
        sql = suble_binds to_sql(sql, binds), binds if binds
        if name == :skip_logging
          _execute(sql, name)
        else
          log(sql, name) { _execute(sql, name) }
        end
      end
def execute ( sql , name = nil , binds = nil ) sql = suble_binds to_sql ( sql , binds ) , binds if binds if name == :skip_logging _execute ( sql , name ) else log ( sql , name ) { _execute ( sql , name ) } end end
Executes the SQL statement in the context of this connection.
Executes the SQL statement in the context of this connection .
sql
<not_specific>
name
<not_specific>
binds
<not_specific>
note
This method does not use prepared statements.
This method does not use prepared statements .
note
The method does not emulate various "native" `execute` results on MRI.
The method does not emulate various " native " ` execute ` results on MRI .
see
None
see
None
see
None