mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
'row' is a reserved word in MySQL 8.0
This commit is contained in:
parent
50ac4c7597
commit
11f9680963
@ -537,7 +537,7 @@ function create_page_browser($idxfield, $querypart) {
|
||||
$page_size_zerobase = $page_size - 1;
|
||||
$query = "
|
||||
SELECT * FROM (
|
||||
SELECT $idxfield AS label, @row := @row + 1 AS row $querypart
|
||||
SELECT $idxfield AS label, @row := @row + 1 AS 'row' $querypart
|
||||
) idx WHERE MOD(idx.row, $page_size) IN (0,$page_size_zerobase) OR idx.row = $count_results
|
||||
";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user