Class: ActiveRecord::Base
- Inherits:
-
Object
- Object
- ActiveRecord::Base
- Extended by:
- JdbcSpec::ActiveRecordExtensions
- Defined in:
- lib/jdbc_adapter/jdbc_mssql.rb,
lib/active_record/connection_adapters/jdbc_adapter.rb
Instance Method Summary collapse
Methods included from JdbcSpec::ActiveRecordExtensions
derby_connection, embedded_driver, h2_connection, hsqldb_connection, jdbc_connection, mysql_connection
Instance Method Details
#attributes_with_quotes(*args) ⇒ Object
:nodoc:
59 60 61 62 63 64 65 |
# File 'lib/active_record/connection_adapters/jdbc_adapter.rb', line 59 def attributes_with_quotes(*args) #:nodoc: aq = attributes_with_quotes_pre_oracle(*args) if connection.class == ConnectionAdapters::JdbcAdapter && (connection.is_a?(JdbcSpec::Oracle) || connection.is_a?(JdbcSpec::Mimer)) aq[self.class.primary_key] = "?" if args.first && aq[self.class.primary_key].nil? end aq end |
#attributes_with_quotes_pre_oracle ⇒ Object
58 |
# File 'lib/active_record/connection_adapters/jdbc_adapter.rb', line 58 alias :attributes_with_quotes_pre_oracle :attributes_with_quotes |