@native_database_types - setup properly by adapter= versus set_native_database_types.
This contains type information for the adapter. Individual adapters can make tweaks by defined modify_types
@native_types - This is the default type settings sans any modifications by the individual adapter. My guess is that if we loaded two adapters of different types then this is used as a base to be tweaked by each adapter to create @native_database_types
# File lib/active_record/connection_adapters/jdbc_adapter.rb, line 308 def initialize(config) @config = config.symbolize_keys! @config[:retry_count] ||= 5 @config[:connection_alive_sql] ||= "select 1" if @config[:jndi] begin configure_jndi rescue => e warn "JNDI data source unavailable: #{e.message}; trying straight JDBC" configure_jdbc end else configure_jdbc end connection # force the connection to load set_native_database_types @stmts = {} rescue Exception => e raise "The driver encountered an error: #{e}" end
Generated with the Darkfish Rdoc Generator 2.