diff --git a/CHANGELOG.md b/CHANGELOG.md index 438b66d1..b5779831 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/adminer/select.inc.php b/adminer/select.inc.php index 1324f61e..850960fb 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -271,6 +271,7 @@ if (!$columns && support("table")) { echo "\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);