Skip Menu |

This queue is for tickets about the Test-Database CPAN distribution.

Report information
The Basics
Id: 93128
Status: resolved
Priority: 0/
Queue: Test-Database

People
Owner: Nobody in particular
Requestors: TIMB [...] cpan.org
Cc:
AdminCc:

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



Subject: username and password should default to undef not an empty string
The DBI and some drivers make a distinction between an undef username or password vs an empty string. I think the fix is to simply delete the username => '', password => '' values from the %args initialization in Test::Database::Handle.
Show quoted text
> I think the fix is to simply delete the username => '', password => '' > values from the %args initialization in Test::Database::Handle.
And from Test::Database::Driver.
On Tue Feb 18 09:50:00 2014, TIMB wrote: Show quoted text
> > I think the fix is to simply delete the username => '', password => '' > > values from the %args initialization in Test::Database::Handle.
> > And from Test::Database::Driver.
The Test::Database code connects using: DBI->connect( $self->connection_info(), $attr ); Where connection_info is defined as: return ( $_[0]->driver_dsn(), $_[0]->username(), $_[0]->password() ); So you're saying the proper default for $username and $auth in the following is undef for both? DBI->connect($data_source, $username, $auth, \%attr); -- BooK