1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-09 16:17:48 +02:00

MySQL: Display number of found rows in group queries (regression from 5.1.1)

This commit is contained in:
Jakub Vrana
2025-04-02 21:32:28 +02:00
parent 22dc4ff444
commit ce03585210
2 changed files with 2 additions and 1 deletions

View 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)

View 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);