Skip to content

Commit

Permalink
Add database name
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh committed Feb 13, 2015
1 parent 30fdf8f commit f904a4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/DataCollector/QueryCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ public function addQuery($query, $bindings, $time, $connection)
'time' => $time,
'source' => $source,
'explain' => $explainResults,
'connection' => $connection->getDatabaseName(),
'hints' => $this->showHints ? $hints : null,
);

Expand Down Expand Up @@ -281,6 +282,7 @@ public function collect()
'duration' => $query['time'],
'duration_str' => $this->formatDuration($query['time']),
'stmt_id' => $query['source'],
'connection' => $query['connection'],
);

//Add the results from the explain as new rows
Expand Down

0 comments on commit f904a4b

Please sign in to comment.