possible bug with module

possible bug with module

am 24.03.2006 07:45:23 von Steve

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/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org