You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Mike Blazer <bl...@peterlink.ru> on 2003/10/30 13:57:25 UTC
Apache::DBI small bug
Guys, hello!
I'd like to point someone who maintains Apache::DBI now at the small bug
that produces
Use of uninitialized value in concatenation (.) or string at
E:/Perl/site/lib/Apache/DBI.pm line 74.
with the latest DBI-1.38 and Apache::DBI 0.92 (though the older 0.89
shows the same warning). DBI is now sending 'Username' key/value pair in
%args to 'connect' method (but not 'Password') even in the case nothing
was given. So, this line
map { $Idx .= "$;$_=$args[3]->{$_}" } sort keys %{$args[3]};
clucks when $args[3] is something like
{ AutoCommit => 1, PrintError => 1, Username => undef },
The possible fix would be
map { $Idx .= "$;$_=$args[3]->{$_}" if defined $args[3]->{$_} }
sort keys %{$args[3]};
Thanks
--
==================================
Mike Blazer
blazer@peterlink.ru
==================================