Display executed SQL.
This commit is contained in:
@@ -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 <lem9@users.sourceforge.net>
|
||||
* libraries/database_interface.lib.php: bug #1041667, correctly
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user