Browse Source
Merge pull request #175 from racerxdl/master
'row' is a reserved word in MySQL 8.0
pull/181/head
David Goodwin
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
functions.inc.php
|
|
|
@ -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 |
|
|
|
";
|
|
|
|
|
|
|
|
|