fix SQL report pagination

This commit is contained in:
Graham Knop 2007-08-24 07:22:45 +00:00
parent 28c30cc5c1
commit cd3cd63d12
2 changed files with 2 additions and 1 deletions

View file

@ -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