1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-11 08:34:59 +02:00

dibi::$sql is always set

This commit is contained in:
David Grudl
2012-12-04 05:28:23 +01:00
parent 6c82e777e1
commit c385888f9a

View File

@@ -338,6 +338,7 @@ class DibiConnection extends DibiObject
{
$this->connected || $this->connect();
dibi::$sql = $sql;
$event = $this->onEvent ? new DibiEvent($this, DibiEvent::QUERY, $sql) : NULL;
try {
$res = $this->driver->query($sql);