possible bug with module

{Darkavich} <[email protected]>
Newsgroups gmane.comp.db.mysql.perl
Message-ID <[email protected]>
I just upgraded to the latest DBD mysql module after many years of  
using the older version.

I noticed that I get an error if \%attr is not passed along with the  
connect string.

Is this a bug? Or is the perldoc out of date?

use DBI;
$db_database    = "test";
%attr                            = {};
$drvh = DBI->install_driver('mysql');

# this fails
$dbh = $drvh->connect($db_database,"","")
         or die "Cannot connect to database: $DBI::errstr\n";;

# this works
$dbh = $drvh->connect($db_database,"","",\%attr)
        or die "Cannot connect to database: $DBI::errstr\n";;

Thanks in advance
--
---------------------------------------------------------
Steve Misrack
@ Your Service
blog: http://www.yourservice.com/blog

Never confuse having a career with having a Life
         -- Eddie Bauer
---------------------------------------------------------
Help me pedal for a cure to MS
http://www.ms150baytobay.com/darkavich
---------------------------------------------------------





-- 
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe:    http://lists.mysql.com/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.