On Wed, Aug 15, 2007 at 01:06:01PM -0500, Graham Barr wrote:
>
> Rose::DB does not know that the $dbh it get back from connect is not a
> newly connected handle. As a result is still goes ahead and calls init_dbh
> which will set all the dbh attributes to the defaults.
The standard approach I recommend is to check for the existence of a
private attribute:
$dbh = DBI->connect_cached(...);
unless ($dbh->{private_foo_bar}) {
# is new connection
...
$dbh->{private_foo_bar} = ...some truee value...
}
Tim.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Rose-db-object mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rose-db-object