
adapter connection options incompatible with most database.yml files
Reported by Martin Gamsjaeger (snusnu) | June 3rd, 2009 @ 03:45 PM
Most database.yml files out there get generated / or are already present with the following options
database: name_of_db
username: user_name
but 0.10.0 needs
path: name_of_db
user: user_name
when using 'database' instead of 'path' one hits a nullpointer at
http://github.com/datamapper/dm-core/blob/de9da83b16a19bc24c344ca67...
when using 'username' instead of 'user' dm always tries to connect with the root user, and the following error is displayed:
Access denied for user 'root'@'localhost' (using password: YES)
This is at least confirmed for mysql and postgres
Maybe it's a good idea to support both variants, since this won't "break" all existing database.yml files out there
Comments and changes to this ticket
-
Dan Kubb (dkubb) June 4th, 2009 @ 04:58 PM
@Martin: can you try the attached patch and let me know if it fixes your problem?
If so I'll spec it and push it into the dm-core/next repository.
-
-
Dan Kubb (dkubb) June 6th, 2009 @ 09:24 PM
- State changed from unconfirmed to resolved
- Assigned user set to Dan Kubb (dkubb)
This is resolved in http://github.com/datamapper/dm-core/commit/fb49efb923d9e6e87841226...
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »