mirror of
https://github.com/vrana/adminer.git
synced 2025-08-21 21:55:43 +02:00
Print elapsed time in HTML instead of SQL command comment
This commit is contained in:
@@ -128,8 +128,8 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
|
||||
}
|
||||
}
|
||||
|
||||
function selectQuery($query) {
|
||||
return "<!--\n" . str_replace("--", "--><!-- ", $query) . "\n-->\n";
|
||||
function selectQuery($query, $time) {
|
||||
return "<!--\n" . str_replace("--", "--><!-- ", $query) . "\n($time)\n-->\n";
|
||||
}
|
||||
|
||||
function rowDescription($table) {
|
||||
@@ -425,8 +425,8 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
|
||||
return "";
|
||||
}
|
||||
|
||||
function messageQuery($query) {
|
||||
return " <span class='time'>" . @date("H:i:s") . "</span><!--\n" . str_replace("--", "--><!-- ", $query) . "\n-->";
|
||||
function messageQuery($query, $time) {
|
||||
return " <span class='time'>" . @date("H:i:s") . "</span><!--\n" . str_replace("--", "--><!-- ", $query) . "\n" . ($time ? "($time)\n" : "") . "-->";
|
||||
}
|
||||
|
||||
function editFunctions($field) {
|
||||
|
Reference in New Issue
Block a user