Normalize db path on sqlite (#1586)

This commit is contained in:
erikn69 2024-03-24 15:08:26 -05:00 committed by GitHub
parent 44445f80be
commit 3724600bb5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -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'],