Display executed SQL.

This commit is contained in:
Michal Čihař
2004-10-20 15:09:44 +00:00
parent 162ee18db3
commit b53b6a2e27
2 changed files with 5 additions and 1 deletions

View File

@@ -40,7 +40,8 @@ echo '<h2>' . "\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