mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 23:57:29 +02:00
MySQL: Display number of found rows in group queries (regression from 5.1.1)
This commit is contained in:
@@ -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)
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user