mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #6449 from mikenz/show-query-number
ENHANCEMENT: Show the query count/query number when using showqueries
This commit is contained in:
commit
9ee3be9337
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user