Skip Menu |
 

This queue is for tickets about the DBD-mysql CPAN distribution.

Report information
The Basics
Id: 89835
Status: resolved
Priority: 0/
Queue: DBD-mysql

People
Owner: Nobody in particular
Requestors: felipe [...] felipegasper.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: connect() doesn’t honor “Username” or “Password” attributes
Date: Tue, 29 Oct 2013 00:58:39 -0500
To: bug-DBD-mysql [...] rt.cpan.org
From: Felipe Gasper <felipe [...] felipegasper.com>
Download (untitled) / with headers
text/plain 393b
DBI docs say: ========= The username and password can also be specified using the attributes Username and Password, in which case they take precedence over the $username and $password parameters. ========= … but this doesn’t work in DBD::mysql (1.630), at all. As best I can tell, nothing even bothers to check the attributes hash for username/password (by any combination of keys).
Download (untitled) / with headers
text/plain 875b
Hi Felipe, On Tue Oct 29 01:58:46 2013, felipe@felipegasper.com wrote: Show quoted text
> DBI docs say: > > ========= > The username and password can also be specified using the attributes > Username and Password, in which case they take precedence over the > $username and $password parameters. > ========= > > … but this doesn’t work in DBD::mysql (1.630), at all. As best I can > tell, nothing even bothers to check the attributes hash for > username/password (by any combination of keys).
Thanks for your bug report. Your version 1.630 is REALLY old. Version 2.0900 was the earliest version I could find on CPAN and is dated May 06, 2001. I tested the description you gave on today's version of DBD::mysql and it works; I did add a unit test to make sure it keeps working :D https://github.com/perl5-dbi/DBD-mysql/commit/c83c90c8e513fccceb7067d7b6046989a8e660d6 -- Michiel


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.