Show the query count/query number when using showqueries

This commit is contained in:
Mike Cochrane 2017-01-03 18:13:44 +13:00
parent 6d8defcc1e
commit 90fec4b8e7

View File

@ -214,7 +214,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);