Forward porting SQL Report/Paginator errorNum fix. errorNum is undefined for
no errors.
This commit is contained in:
parent
86621e255b
commit
2470aeb750
2 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue