Skip to content

Commit dd75e74

Browse files
committed
ConnectionPanel: params are useless for EXPLAIN
1 parent b4a2692 commit dd75e74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Bridges/DatabaseTracy/ConnectionPanel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,13 @@ public function getPanel(): ?string
122122
$totalTime = $this->totalTime;
123123
$queries = [];
124124
foreach ($this->queries as $query) {
125-
[$connection, $sql, $params, , , , $error] = $query;
125+
[$connection, $sql, , , , , $error] = $query;
126126
$explain = null;
127127
$command = preg_match('#\s*\(?\s*(SELECT|INSERT|UPDATE|DELETE)\s#iA', $sql, $m) ? strtolower($m[1]) : null;
128128
if (!$error && $this->explain && $command === 'select') {
129129
try {
130130
$cmd = is_string($this->explain) ? $this->explain : 'EXPLAIN';
131-
$explain = $connection->queryArgs("$cmd $sql", $params)->fetchAll();
131+
$explain = $connection->queryArgs("$cmd $sql", [])->fetchAll();
132132
} catch (\PDOException $e) {
133133
}
134134
}

0 commit comments

Comments
 (0)