From b53b6a2e271510ee594772b1c70b1849f0ddc75b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 20 Oct 2004 15:09:44 +0000 Subject: [PATCH] Display executed SQL. --- ChangeLog | 1 + server_processlist.php | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 29f12bbf0..0438d8457 100755 --- a/ChangeLog +++ b/ChangeLog @@ -15,6 +15,7 @@ $Source$ * db_details_qbe.php: Backquote table name. * libraries/display_tbl.lib.php: Comments now work for multi table selects (bug #789647). + * server_processlist.php: Display executed SQL. 2004-10-19 Marc Delisle * libraries/database_interface.lib.php: bug #1041667, correctly diff --git a/server_processlist.php b/server_processlist.php index e2c4f0ac6..3e444eea0 100644 --- a/server_processlist.php +++ b/server_processlist.php @@ -40,7 +40,8 @@ echo '

' . "\n" * Sends the query and buffers the result */ $serverProcesses = array(); -$res = PMA_DBI_query('SHOW' . (empty($full) ? '' : ' FULL') . ' PROCESSLIST;'); +$sql_query = 'SHOW' . (empty($full) ? '' : ' FULL') . ' PROCESSLIST'; +$res = PMA_DBI_query($sql_query); while ($row = PMA_DBI_fetch_assoc($res)) { $serverProcesses[] = $row; } @@ -48,6 +49,8 @@ while ($row = PMA_DBI_fetch_assoc($res)) { unset($res); unset($row); +PMA_showMessage($GLOBALS['strSQLQuery']); + /** * Displays the page