Subject: | clone returns original dbh. |
$dbh->clone
returns the original $dbh with Apache::DBI. My guess is that it is picking up the cached credentials.
...
my $cloned_dbh = $dbh->clone;
DBMon($dbh);
DBMon($cloned_dbh);
2014-02-06 19:33:24 9297 whDBFuncs.pm User XmlUser: Apache::DBI::db=HASH(0x7fd8531cb290)
2014-02-06 19:33:24 9297 whDBFuncs.pm User XmlUser: Apache::DBI::db=HASH(0x7fd8531cb290)
It works fine (returns different handle) if run from the command line.
perl -v = 5.10.1
RHEL 2.6.32-279.22.1.el6.x86_64