mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Show the query count/query number when using showqueries
This commit is contained in:
parent
6d8defcc1e
commit
90fec4b8e7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user