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

@ -4,6 +4,7 @@
- fixed #10226: html2text dropping text
- fixed #10210: Generated Message-Id invalid (patch basis from tektek)
- fixed #10209: Changing existing user profile field type doesn't change underlying database column type
- fixed #10047: SQLReport Debug doesn't catch when bind variables are incorrect
7.7.4
- rfe: Extend DateTime for Week-Nrs (#9151)

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);
}