oodles of fixes.
This commit is contained in:
parent
73b38f5498
commit
3d740cdfac
4 changed files with 26 additions and 22 deletions
|
|
@ -538,10 +538,10 @@ sub setDataByQuery {
|
|||
my ($self, $sql, $dbh, $unconditional, $placeholders, $dynamicPageNumberKey, $dynamicPageNumberValue) = @_;
|
||||
$dbh ||= $self->session->dbSlave;
|
||||
if ($unconditional) {
|
||||
$sth = $dbh->unconditionalRead($sql,$placeholders);
|
||||
$sth = $dbh->unconditionalRead($sql,undef,$placeholders);
|
||||
return $sth->errorMessage if ($sth->errorCode > 0);
|
||||
} else {
|
||||
$sth = $dbh->read($sql,$placeholders);
|
||||
$sth = $dbh->read($sql,undef,$placeholders);
|
||||
}
|
||||
my $defaultPageNumber = $self->getPageNumber;
|
||||
$self->{_totalRows} = $sth->rows;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue