This project is archived and is in readonly mode.
Change handling for default username in MySQL Adapter
Reported by CancelProfileIsBroken | November 8th, 2008 @ 05:43 PM | in 2.x
Attached patch slightly alters the username handling in the MySQL Adapter: if the default username of 'root' is used because no username was supplied in database.yml, that default username is written back to the local config hash in the adapter.
Without this change, MysqlAdapter#reset! fails in the case where no username is specified in database.yml.
No test supplied - I do not immediately see a good way to test this.
Comments and changes to this ticket
-
Pratik March 6th, 2009 @ 07:17 PM
- Tag changed from adapters, mysql, patch to adapters, mysql, patch
- State changed from new to wontfix
Just supply the username explicitly :)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>