'row' is a reserved word in MySQL 8.0

pull/175/head
Lucas Teske 7 years ago
parent 50ac4c7597
commit 11f9680963
No known key found for this signature in database
GPG Key ID: 6C39C1C16A9DA7BE

@ -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…
Cancel
Save