Hi,

DBD::mysql received a bug report
(https://rt.cpan.org/Public/Bug/Display.html?id=89835) which reads:

"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.
=========

This refers to: https://github.com/perl5-dbi/dbi/blob/master/DBI.pm#L2750

I think this should look like this:

my $dbh = DBI->connect(
    "DBI:mysql:test",
    {
        PrintError => 0,
        Username => 'foo',
        Password => 'bar'
    }
);

I think *if* this is supposed to be working it should be implemented
in DBI rather than in the driver, am I right?
--
Mike

Reply via email to