Req #17647 [Opn->Ver]: Change some MDB2 query() calls to exec()
| From: | till@php.net | Date: | Fri, 03 Sep 2010 14:15:52 +0000 |
| Subject: | Req #17647 [Opn->Ver]: Change some MDB2 query() calls to exec() | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-4761@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=17647&edit=1
ID: 17647
Updated by: till@php.net
Reported By: bernhard dot mayer dot hh at gmail dot com
Summary: Change some MDB2 query() calls to exec()
-Status: Open
+Status: Verified
Type: Feature/Change Request
Package: HTTP_Session2
Operating System: Win7
Package Version: 0.7.3
PHP Version: 5.3.1
-Assigned To:
+Assigned To: till
-Roadmap Versions:
+Roadmap Versions: 0.8.0
New Comment:
-Status: Open
+Status: Verified
-Assigned To:
+Assigned To: till
-Roadmap Versions:
+Roadmap Versions: 0.8.0
Previous Comments:
------------------------------------------------------------------------
[2010-08-02 12:27:19] mckenna
Description:
------------
Some calls to query() of the MDB2 PEAR Package should be changed to use
exec().
Especially the calls with a Query that uses INSERT, UPDATE or DELETE to
retrieve the affected rows.
Sorry no patch file possible. As an example in the mdb2.php container
file. At line 245 of write method, change this line:
$result = $this->db->query($query);
to this line:
$result = $this->db->exec($query);
The result will contain the number of affected rows or a PEAR Error.
Other methods are destroy, gc and replicate.
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=17647&edit=1