Changeset 350

Show
Ignore:
Timestamp:
04/07/07 23:36:57 (3 years ago)
Author:
garth
Message:

Patch from sekimura to re-connect to the DB if the connection goes stale.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/Data/ObjectDriver/Driver/DBI.pm

    r347 r350  
    6767    my $driver = shift; 
    6868    my $db = shift || 'main'; 
     69    $driver->dbh(undef) if $driver->dbh and !$driver->dbh->ping; 
    6970    my $dbh = $driver->dbh; 
    7071    unless ($dbh) {