Skip Menu |

This queue is for tickets about the DBI CPAN distribution.

Report information
The Basics
Id: 73250
Status: resolved
Priority: 0/
Queue: DBI

People
Owner: Nobody in particular
Requestors: nihen [...] megabbs.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: clone with \%attr, and next clone return undef
reproduce code: ------------------------------ use DBI; use Data::Dumper; my $dbh = DBI->connect('dbi:mysql:database=sandbox', 'sandbox', 'sandbox'); $dbh = $dbh->clone({}); warn Dumper($dbh); $dbh = $dbh->clone(); warn Dumper($dbh); ----------------------------- output: ---------------------------- $VAR1 = bless( {}, 'DBI::db' ); $VAR1 = undef; ---------------------------- if s/clone({})/clone()/ then output is: ---------------------------- $VAR1 = bless( {}, 'DBI::db' ); $VAR1 = bless( {}, 'DBI::db' ); ----------------------------
Fixed in next release. Thanks.