Skip to content

Commit 1f457f6

Browse files
committed
ConnectionPanel: bypasses SqlPreprocessor for explain to avoid double processing [Closes #259]
1 parent b45e33a commit 1f457f6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Bridges/DatabaseTracy/ConnectionPanel.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ public function getTab(): string
112112

113113
public function getPanel(): ?string
114114
{
115-
$this->disabled = true;
116115
if (!$this->count) {
117116
return null;
118117
}
@@ -125,7 +124,7 @@ public function getPanel(): ?string
125124
if (!$error && $this->explain && $command === 'select') {
126125
try {
127126
$cmd = is_string($this->explain) ? $this->explain : 'EXPLAIN';
128-
$explain = $connection->queryArgs("$cmd $sql", $params)->fetchAll();
127+
$explain = (new Nette\Database\ResultSet($connection, "$cmd $sql", $params))->fetchAll();
129128
} catch (\PDOException $e) {
130129
}
131130
}

0 commit comments

Comments
 (0)