src/Darya/Database/Connection/SqlServer.php 1 location
|
@@ 123-129 (lines=7) @@
|
| 120 |
|
|
| 121 |
|
$this->connect(); |
| 122 |
|
|
| 123 |
|
if (!$this->connected()) { |
| 124 |
|
$this->lastResult = new Result($query, array(), array(), $this->error()); |
| 125 |
|
|
| 126 |
|
$this->event('sqlserver.query', array($this->lastResult)); |
| 127 |
|
|
| 128 |
|
return $this->lastResult; |
| 129 |
|
} |
| 130 |
|
|
| 131 |
|
$this->lastResult = null; |
| 132 |
|
|
src/Darya/Database/Connection/MySql.php 1 location
|
@@ 272-278 (lines=7) @@
|
| 269 |
|
|
| 270 |
|
$this->connect(); |
| 271 |
|
|
| 272 |
|
if (!$this->connected()) { |
| 273 |
|
$this->lastResult = new Result($query, array(), array(), $this->error()); |
| 274 |
|
|
| 275 |
|
$this->event('mysql.query', array($this->lastResult)); |
| 276 |
|
|
| 277 |
|
return $this->lastResult; |
| 278 |
|
} |
| 279 |
|
|
| 280 |
|
$this->lastResult = null; |
| 281 |
|
|