#21963 [Opn->Csd]: Pear DB's autoPrepare fails DB_AUTOQUERY_UPDATEs
| From: | fab@php.net | Date: | Thu, 30 Jan 2003 19:31:33 +0000 |
| Subject: | #21963 [Opn->Csd]: Pear DB's autoPrepare fails DB_AUTOQUERY_UPDATEs | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-12850@lists.php.net to get a copy of this message | ||
ID: 21963
Updated by: fab@php.net
Reported By: samuli.tuomola@icinsight.com
-Status: Open
+Status: Closed
Bug Type: PEAR related
Operating System: Debian Linux 3.0
PHP Version: 4.3.0
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
Thanks for the bug report and the fix. Yet, it has already been fixed
in CVS.
Previous Comments:
------------------------------------------------------------------------
[2003-01-30 10:40:26] samuli.tuomola@icinsight.com
After getting autoPrepare finally to run I was greeted with sql query
like "UPDATE table SET field=? WHERE UPDATE table SET field=?" after
doublechecking the code I opened DB/common.php and there in
buildManipSQL() on line 526 it said $sql .= " WHERE $sql"; when it
obviously should've been $sql .= " WHERE $where";
Didn't find the bug reported although it must've been there over half a
year and severely damages autoPrepare functionality.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21963&edit=1