Loading ...
Sorry, an error occurred while loading the content.

Apache::DBI small bug

Expand Messages
  • Mike Blazer
    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
    Message 1 of 1 , Oct 30, 2003
    • 0 Attachment
      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@...
      ==================================
    Your message has been successfully submitted and would be delivered to recipients shortly.