mirror of
https://github.com/dg/dibi.git
synced 2025-08-13 17:44:11 +02:00
- new DibiTable constructor
- moved "tricky clone" from DibiConnection::query to IDibiDriver::query
This commit is contained in:
@@ -142,7 +142,7 @@ class DibiMySqliDriver extends /*Nette::*/Object implements IDibiDriver
|
||||
* Executes the SQL query.
|
||||
*
|
||||
* @param string SQL statement.
|
||||
* @return bool have resultset?
|
||||
* @return IDibiDriver|NULL
|
||||
* @throws DibiDriverException
|
||||
*/
|
||||
public function query($sql)
|
||||
@@ -153,7 +153,7 @@ class DibiMySqliDriver extends /*Nette::*/Object implements IDibiDriver
|
||||
$this->throwException($sql);
|
||||
}
|
||||
|
||||
return is_object($this->resultset);
|
||||
return is_object($this->resultset) ? clone $this : NULL;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user