1
0
mirror of https://github.com/dg/dibi.git synced 2025-10-20 01:06:25 +02:00

- new DibiTable constructor

- moved "tricky clone" from DibiConnection::query to IDibiDriver::query
This commit is contained in:
David Grudl
2008-06-10 01:09:23 +00:00
parent 4e41f1641e
commit d12895102f
12 changed files with 26 additions and 31 deletions

View File

@@ -158,7 +158,7 @@ class DibiMySqlDriver 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)
@@ -173,7 +173,7 @@ class DibiMySqlDriver extends /*Nette::*/Object implements IDibiDriver
$this->throwException($sql);
}
return is_resource($this->resultset);
return is_resource($this->resultset) ? clone $this : NULL;
}