cvs: pear /MDB2/MDB2/Driver querysim.php
| From: | Lorenzo Alberton | Date: | Wed, 25 Apr 2007 09:11:58 +0000 |
| Subject: | cvs: pear /MDB2/MDB2/Driver querysim.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-46158@lists.php.net to get a copy of this message | ||
quipo Wed Apr 25 09:11:58 2007 UTC
Modified files:
/pear/MDB2/MDB2/Driver querysim.php
Log:
exec() now returns a reference instead of a copy to prevent memory leaks
http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/querysim.php?r1=1.78&r2=1.79&diff_format=u
Index: pear/MDB2/MDB2/Driver/querysim.php
diff -u pear/MDB2/MDB2/Driver/querysim.php:1.78 pear/MDB2/MDB2/Driver/querysim.php:1.79
--- pear/MDB2/MDB2/Driver/querysim.php:1.78 Tue Dec 5 12:31:02 2006
+++ pear/MDB2/MDB2/Driver/querysim.php Wed Apr 25 09:11:58 2007
@@ -61,7 +61,7 @@
// | please contact Alan Richmond. |
// +----------------------------------------------------------------------+
//
-// $Id: querysim.php,v 1.78 2006/12/05 12:31:02 quipo Exp $
+// $Id: querysim.php,v 1.79 2007/04/25 09:11:58 quipo Exp $
//
/*
@@ -546,7 +546,7 @@
}
// }}}
- // {{{ exec()
+ // {{{ &exec()
/**
* Execute a manipulation query to the database and return any the affected rows
@@ -555,7 +555,7 @@
* @return mixed affected rows on success, a MDB2 error on failure
* @access public
*/
- function exec($query)
+ function &exec($query)
{
return $this->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
'Querysim only supports reading data', __FUNCTION__);