jruby/activerecord-jdbc-adapter — Issue #127: ActiveRecord::Base.connection_config is modified by adapter
Author: sobrinho
Created: 2011-11-07 16:04:46+00:00
State: open

Hello,

I'm using `ActiveRecord::Base.connection_config` to fetch some information for specific reasons of my application.

When using ruby 1.9 I see exactly what is on database.yml (using rails):

``` ruby
{:adapter=>"postgresql", :encoding=>"unicode", :database=>"XXX", :pool=>5, :min_messages=>"warning", :username=>"XXX", :password=>"XXX", :host=>"localhost", :port=>5432}
```

But using activerecord-jdbc-adapter I receive some "exotic" options:

``` ruby
{:adapter=>"postgresql", :encoding=>"unicode", :database=>"XXX", :pool=>5, :min_messages=>"warning", :username=>"XXX", :password=>"XXX", :host=>"localhost", :port=>5432, :url=>"jdbc:postgresql://localhost:5432/XXX", :driver=>"org.postgresql.Driver", :adapter_spec=>ArJdbc::PostgreSQL, :retry_count=>5, :connection_alive_sql=>"select 1", :driver_instance=>#, @driver_class=Java::OrgPostgresql::Driver>}}
```

Maybe this should not happen?