Merge pull request #6449 from mikenz/show-query-number

ENHANCEMENT: Show the query count/query number when using showqueries
This commit is contained in:
Daniel Hensby 2017-01-03 12:04:47 +00:00 committed by GitHub
commit 9ee3be9337

View File

@ -215,7 +215,8 @@ abstract class Database
if (strtolower($_REQUEST['showqueries']) == 'inline') {
$sql = DB::inline_parameters($sql, $parameters);
}
Debug::message("\n$sql\n{$endtime}s\n", false);
$queryCount = sprintf("%04d", $this->queryCount);
Debug::message("\n$queryCount: $sql\n{$endtime}s\n", false);
return $result;
} else {
return $callback($sql);