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