1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-06 14:16:39 +02:00

DibiResult destructor moved to individual IDibiResultDriver drivers

This commit is contained in:
David Grudl
2010-08-27 01:24:02 +02:00
parent 087734fb23
commit ec82eda864
12 changed files with 99 additions and 36 deletions

View File

@@ -375,6 +375,17 @@ class DibiMySqliDriver extends DibiObject implements IDibiDriver, IDibiResultDri
/**
* Automatically frees the resources allocated for this result set.
* @return void
*/
public function __destruct()
{
$this->resultSet && @$this->free();
}
/**
* Returns the number of rows in a result set.
* @return int