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