From 593f71dd238fcca9b1474111b86bb566206a2832 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Fri, 20 Jan 2017 16:24:34 +0100 Subject: [PATCH] Fixed filtering for active processes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There are dozen of process states when executing the query, we can't filter just for one of them. Let's rather exclude those without state and are idling. See also http://dev.mysql.com/doc/refman/5.7/en/general-thread-states.html Fixes #12732 Signed-off-by: Michal Čihař --- ChangeLog | 1 + libraries/server_status_processes.lib.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8857dd820b..cf3ab5a81b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -38,6 +38,7 @@ phpMyAdmin - ChangeLog - issue #12876 Fix possible PHP error in navigation - issue #12881 Fix database search with newer php-gettext - issue #12894 Fix linter error on unterminated variable name +- issue #12732 Fixed filtering for active processes 4.6.5.2 (2016-12-05) - issue #12765 Fixed SQL export with newlines diff --git a/libraries/server_status_processes.lib.php b/libraries/server_status_processes.lib.php index b55226e0e8..435039f2e2 100644 --- a/libraries/server_status_processes.lib.php +++ b/libraries/server_status_processes.lib.php @@ -112,7 +112,7 @@ function PMA_getHtmlForServerProcesslist() $sql_query = 'SELECT * FROM `INFORMATION_SCHEMA`.`PROCESSLIST` '; } if (! empty($_REQUEST['showExecuting'])) { - $sql_query .= ' WHERE state = "executing" '; + $sql_query .= ' WHERE state != "" '; } if (!empty($_REQUEST['order_by_field']) && !empty($_REQUEST['sort_order'])) { $sql_query .= ' ORDER BY '