lib/arjdbc/abstract/database_statements.rb
def exec_query(sql, name = nil, binds = NO_BINDS, prepare: false)
        if without_prepared_statement?(binds)
          log(sql, name) { @connection.execute_query(sql) }
        else
          log(sql, name, binds) do
            # It seems that #supports_statement_cache? is defined but isn't checked before setting "prepare" (AR 5.0)
            cached_statement = fetch_cached_statement(sql) if prepare && @jdbc_statement_cache_enabled
            @connection.execute_prepared_query(sql, binds, cached_statement)
          end
        end
      end
# It appears that at this point (AR 5.0) "prepare" should only ever be true
# if prepared statements are enabled
It appears that at this point (AR 5.0) "prepare" should only ever be true
if prepared statements are enabled
It appears that at this point ( AR 5 . 0 ) " prepare " should only ever be true if prepared statements are enabled
def exec_query(sql, name = nil, binds = NO_BINDS, prepare: false)
        if without_prepared_statement?(binds)
          log(sql, name) { @connection.execute_query(sql) }
        else
          log(sql, name, binds) do
            cached_statement = fetch_cached_statement(sql) if prepare && @jdbc_statement_cache_enabled
            @connection.execute_prepared_query(sql, binds, cached_statement)
          end
        end
      end
def exec_query ( sql , name = nil , binds = NO_BINDS , prepare : false ) if without_prepared_statement? ( binds ) log ( sql , name ) { @connection . execute_query ( sql ) } else log ( sql , name , binds ) do cached_statement = fetch_cached_statement ( sql ) if prepare && @jdbc_statement_cache_enabled @connection . execute_prepared_query ( sql , binds , cached_statement ) end end end
It appears that at this point (AR 5.0) "prepare" should only ever be true
if prepared statements are enabled
It appears that at this point ( AR 5 . 0 ) " prepare " should only ever be true if prepared statements are enabled
# It seems that #supports_statement_cache? is defined but isn't checked before setting "prepare" (AR 5.0)
sql
name
binds
prepare