Normalize db path on sqlite (#1586)
This commit is contained in:
parent
44445f80be
commit
3724600bb5
|
@ -512,6 +512,10 @@ class QueryCollector extends PDOCollector
|
|||
$totalTime += $query['time'];
|
||||
$totalMemory += $query['memory'];
|
||||
|
||||
if (str_ends_with($query['connection'], '.sqlite')) {
|
||||
$query['connection'] = $this->normalizeFilePath($query['connection']);
|
||||
}
|
||||
|
||||
$statements[] = [
|
||||
'sql' => $this->getDataFormatter()->formatSql($query['query']),
|
||||
'type' => $query['type'],
|
||||
|
|
Loading…
Reference in New Issue