fix SQL report pagination
This commit is contained in:
parent
28c30cc5c1
commit
cd3cd63d12
2 changed files with 2 additions and 1 deletions
|
|
@ -693,7 +693,7 @@ sub setDataByQuery {
|
|||
#Set the query limits
|
||||
$sql =~ s/;\s+$//;
|
||||
$sql .= " limit $start,$rowsPerPage";
|
||||
$sql =~ s/select/select SQL_CALC_FOUND_ROWS /;
|
||||
$sql =~ s/\bSELECT\s/SELECT SQL_CALC_FOUND_ROWS /i;
|
||||
|
||||
#$self->session->errorHandler->warn($sql);
|
||||
#Get only the data necessary from the database
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue