]> git.joonet.de Git - adminer.git/commitdiff
MySQL: Display number of found rows in group queries (regression from 5.1.1)
authorJakub Vrana <jakub@vrana.cz>
Wed, 2 Apr 2025 19:32:28 +0000 (21:32 +0200)
committerJakub Vrana <jakub@vrana.cz>
Wed, 2 Apr 2025 19:32:28 +0000 (21:32 +0200)
CHANGELOG.md
adminer/select.inc.php

index 438b66d1eb464455fc21e44492e00e625a89bc7c..b57798318e79b8d176a4a26df23b63a69a4f5f30 100644 (file)
@@ -1,4 +1,5 @@
 ## Adminer dev
+- MySQL: Display number of found rows in group queries (regression from 5.1.1)
 
 ## Adminer 5.1.1 (released 2025-04-02)
 - Export: Fix tar (regression from 5.0.3)
index 1324f61e1e4a0eea05329ea3b74886914b1be46d..850960fbc47725f8771340fe29c5b005304c21d0 100644 (file)
@@ -271,6 +271,7 @@ if (!$columns && support("table")) {
        echo "</form>\n";
 
        $page = $_GET["page"];
+       $found_rows = null;
        if ($page == "last") {
                $found_rows = get_val(count_rows($TABLE, $where, $is_group, $group));
                $page = floor(max(0, intval($found_rows) - 1) / $limit);
@@ -487,7 +488,6 @@ if (!$columns && support("table")) {
                if (!is_ajax()) {
                        if ($rows || $page) {
                                $exact_count = true;
-                               $found_rows = null;
                                if ($_GET["page"] != "last") {
                                        if (!$limit || (count($rows) < $limit && ($rows || !$page))) {
                                                $found_rows = ($page ? $page * $limit : 0) + count($rows);