mirror of
https://github.com/dg/dibi.git
synced 2025-08-09 23:56:58 +02:00
DibiProfiler: explain query doesn't overwrite dibi::$sql
This commit is contained in:
@@ -148,10 +148,12 @@ class DibiProfiler extends DibiObject implements IDibiProfiler, /*Nette\*/IDebug
|
||||
);
|
||||
|
||||
if ($this->explainQuery && $event === self::SELECT) {
|
||||
$tmpSql = dibi::$sql;
|
||||
try {
|
||||
$ticket[5] = dibi::dump($connection->setProfiler(NULL)->nativeQuery('EXPLAIN ' . $sql), TRUE);
|
||||
} catch (DibiException $e) {}
|
||||
$connection->setProfiler($this);
|
||||
dibi::$sql = $tmpSql;
|
||||
}
|
||||
|
||||
if ($this->useFirebug && !headers_sent()) {
|
||||
|
Reference in New Issue
Block a user