0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-20 03:36:20 +02:00

'row' is a reserved word in MySQL 8.0

This commit is contained in:
Lucas Teske 2018-05-17 20:45:35 -03:00
parent 50ac4c7597
commit 11f9680963
No known key found for this signature in database
GPG Key ID: 6C39C1C16A9DA7BE

View File

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