Skip to content

Commit

Permalink
pass empty string to query if no connection name is available - fixes
Browse files Browse the repository at this point in the history
…#86
  • Loading branch information
mpociot committed Sep 4, 2019
1 parent cf7364d commit 8992921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QueryRecorder/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static function fromQueryExecutedEvent(QueryExecuted $queryExecuted, bool
return new static(
$queryExecuted->sql,
$queryExecuted->time,
$queryExecuted->connectionName,
$queryExecuted->connectionName ?? '',
$reportBindings ? $queryExecuted->bindings : null
);
}
Expand Down

0 comments on commit 8992921

Please sign in to comment.