fix: New pagination breaks SQL Reports with semicolons
This commit is contained in:
parent
18b5da96d3
commit
aaf7d9cf44
2 changed files with 3 additions and 0 deletions
|
|
@ -691,6 +691,7 @@ sub setDataByQuery {
|
|||
my $start = ( ($pageNumber - 1) * $rowsPerPage );
|
||||
|
||||
#Set the query limits
|
||||
$sql =~ s/;\s+$//;
|
||||
$sql .= " limit $start,$rowsPerPage";
|
||||
$sql =~ s/select/select SQL_CALC_FOUND_ROWS /;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue