Author: jimw
Date: Fri Dec 29 10:12:57 2006
New Revision: 8492
Modified:
DBD-mysql/trunk/ChangeLog
DBD-mysql/trunk/lib/DBD/mysql.pm
Log:
Fix warning when no connection attributes are passed to the connect
method (Bug #17323, reported by Chris Radcliff and Phil Randal)
Modified: DBD-mysql/trunk/ChangeLog
==============================================================================
--- DBD-mysql/trunk/ChangeLog (original)
+++ DBD-mysql/trunk/ChangeLog Fri Dec 29 10:12:57 2006
@@ -1,4 +1,6 @@
<unreleased> Jim Winstead <jimw@stripped> (4.01)
+* Fix warning when no connection attributes are passed to the connect
+ method (Bug #17323, reported by Phil Randal)
* Removed redundant warnings when commit or rollback is called while
AutoCommit is enabled. [rt.cpan.org #15802], reported by Tyler MacDonald
* Report correct type for decimal columns from MySQL 5.0 and later
Modified: DBD-mysql/trunk/lib/DBD/mysql.pm
==============================================================================
--- DBD-mysql/trunk/lib/DBD/mysql.pm (original)
+++ DBD-mysql/trunk/lib/DBD/mysql.pm Fri Dec 29 10:12:57 2006
@@ -109,6 +109,7 @@
# Avoid warnings for undefined values
$username ||= '';
$password ||= '';
+ $attrhash ||= {};
# create a 'blank' dbh
my($this, $privateAttrHash) = (undef, $attrhash);
| Thread |
|---|
| • [svn:DBD-mysql] r8492 - in DBD-mysql/trunk: . lib/DBD | jimw | 29 Dec |