in reply to DBI connect problem
you should change if (!$result) { to if (!defined($dbh) ) { giving the following code, which should make more sense
if (!defined($dbh) ) { $errStr .= " [dbh UNDEFINED]".$testStr; $self->log_comment("ERROR: db_connect => ".$errStr); } else { $errStr .= " [dbh DEFINED]".$testStr; }
--
hiseldl
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Swap branches refactoring
by IlyaM (Parson) on Jul 31, 2002 at 08:02 UTC |