Class: ActiveRecord::Base

Inherits:
Object
  • Object
show all
Extended by:
JdbcSpec::ActiveRecordExtensions
Defined in:
lib/jdbc_adapter/jdbc_mssql.rb,
lib/jdbc_adapter/jdbc_informix.rb,
lib/active_record/connection_adapters/jdbc_adapter.rb

Instance Method Summary collapse

Methods included from JdbcSpec::ActiveRecordExtensions

cachedb_connection, derby_connection, embedded_driver, h2_connection, hsqldb_connection, informix_connection, jdbc_connection, mysql_connection, sqlite3_connection

Instance Method Details

#attributes_with_quotes(include_primary_key = true, *args) ⇒ Object

:nodoc:



64
65
66
67
68
69
70
# File 'lib/active_record/connection_adapters/jdbc_adapter.rb', line 64

def attributes_with_quotes(include_primary_key = true, *args) #:nodoc:
  aq = attributes_with_quotes_pre_oracle(include_primary_key, *args)
  if connection.class == ConnectionAdapters::JdbcAdapter && (connection.is_a?(JdbcSpec::Oracle) || connection.is_a?(JdbcSpec::Mimer))
    aq[self.class.primary_key] = "?" if include_primary_key && aq[self.class.primary_key].nil?
  end
  aq
end

#attributes_with_quotes_pre_oracleObject



63
# File 'lib/active_record/connection_adapters/jdbc_adapter.rb', line 63

alias :attributes_with_quotes_pre_oracle :attributes_with_quotes