
:socket not assigned
Reported by steve ross | November 25th, 2007 @ 04:21 PM
In data_mapper.rb, around line 51 where the Rails or Merb database.yml gets assigned to the datamapper hash, :socket is not honored.
Working code (in my naive test):
default_database_config = {
:adapter => config[:adapter],
:host => config[:host],
:database => config[:database],
:username => config[:username],
:password => config[:password],
:socket => config[:socket]
}
Sorry about not writing a spec and such.
Comments and changes to this ticket
-
steve ross November 28th, 2007 @ 12:56 AM
Adding a patch to fix this. Note: I've pushed my rspec_fu and I can't make a spec that will pass and not break other specs. I'd be interested to see how spec'ing this is handled.
-
Sam Smoot December 5th, 2007 @ 01:25 PM
- State changed from new to resolved
In r531. Will push to trunk over the weekend.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.