On Sat, Apr 17, 2004 at 06:34:15PM +0530, Jason E. Stewart wrote:
> Hey All,
> 
> Using DBI 1.41 and DBD::Pg 1.32 with mod_perl 1.29.0.2 and I get a
> strange situation.
> 
> When I'm using a DB handle that ends in an error condtion, the next
> time my mod_perl script calls connect_cached() if I check $DBI::err it
> is still set to the last error that happend - not any error that
> happened during the connect_cached() call - this leads to my connect
> script thinking it got an error during the connect call, which isn't
> true. 
> 
> Do I need to be manually cleaning up DBI somehow? Or is this a bug?

A bug I guesss. But you should only be checking $DBI::err is $dbh is false.

Tim.

Reply via email to