Sha256: 75758983c9c7291a89e1b9b009b3dfa27065ccba8f1137ea24027faf2eacff7d

Contents?: true

Size: 453 Bytes

Versions: 1

Compression:

Stored size: 453 Bytes

Contents

ArJdbc::ConnectionMethods.module_eval do
  def oracle_connection(config)
    config[:port] ||= 1521
    config[:url] ||= "jdbc:oracle:thin:@#{config[:host]}:#{config[:port]}:#{config[:database]}"
    config[:driver] ||= "oracle.jdbc.driver.OracleDriver"
    config[:adapter_spec] = ::ArJdbc::Oracle
    config[:connection_alive_sql] ||= 'SELECT 1 FROM DUAL'
    jdbc_connection(config)
  end
  alias_method :jdbcoracle_connection, :oracle_connection
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activerecord-jdbc-adapter-1.3.0.beta1 lib/arjdbc/oracle/connection_methods.rb