Forward porting SQL Report/Paginator errorNum fix. errorNum is undefined for

no errors.
This commit is contained in:
Colin Kuskie 2009-04-26 23:14:22 +00:00
parent 86621e255b
commit 2470aeb750
2 changed files with 2 additions and 1 deletions

View file

@ -713,7 +713,7 @@ sub setDataByQuery {
my $sth;
if ($unconditional) {
$sth = $dbh->unconditionalRead($sql,$placeholders);
return $sth->errorMessage if ($sth->errorCode > 0);
return $sth->errorMessage if (defined $sth->errorCode);
} else {
$sth = $dbh->read($sql,$placeholders);
}