possible bug with module

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
[at] 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 [at] m .gmane.org
Steve [ Fr, 24 März 2006 07:45 ] [ ID #1244258 ]
Datenbanken » gmane.comp.db.mysql.perl » possible bug with module

Vorheriges Thema: multiple update in one request possible?
Nächstes Thema: Bug #18426: incorrect value returned for int column