Class: ActiveRecord::Base
- Inherits:
-
Object
- Object
- ActiveRecord::Base
- Extended by:
- JdbcSpec::ActiveRecordExtensions
- Defined in:
- lib/jdbc_adapter/jdbc_informix.rb,
lib/active_record/connection_adapters/jdbc_adapter.rb
Instance Method Summary collapse
-
#attributes_with_quotes(include_primary_key = true, *args) ⇒ Object
:nodoc:.
- #attributes_with_quotes_pre_oracle ⇒ Object
Methods included from JdbcSpec::ActiveRecordExtensions
add_method_to_remove_from_ar_base, cachedb_connection, derby_connection, embedded_driver, extended, h2_connection, hsqldb_connection, informix_connection, jdbc_connection, mysql_connection, oracle_connection, parse_sqlite3_config!, postgresql_connection, sqlite3_connection
Instance Method Details
#attributes_with_quotes(include_primary_key = true, *args) ⇒ Object
:nodoc:
66 67 68 69 70 71 72 |
# File 'lib/active_record/connection_adapters/jdbc_adapter.rb', line 66 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_oracle ⇒ Object
65 |
# File 'lib/active_record/connection_adapters/jdbc_adapter.rb', line 65 alias :attributes_with_quotes_pre_oracle :attributes_with_quotes |