Skip to content

Commit 3724600

Browse files
authored
Normalize db path on sqlite (#1586)
1 parent 44445f8 commit 3724600

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/DataCollector/QueryCollector.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,10 @@ public function collect()
512512
$totalTime += $query['time'];
513513
$totalMemory += $query['memory'];
514514

515+
if (str_ends_with($query['connection'], '.sqlite')) {
516+
$query['connection'] = $this->normalizeFilePath($query['connection']);
517+
}
518+
515519
$statements[] = [
516520
'sql' => $this->getDataFormatter()->formatSql($query['query']),
517521
'type' => $query['type'],

0 commit comments

Comments
 (0)