Req #17647 [Fbk]: Change some MDB2 query() calls to exec()

From: Date: Fri, 03 Sep 2010 14:23:56 +0000
Subject: Req #17647 [Fbk]: Change some MDB2 query() calls to exec()
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-4763@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: Feedback Type: Feature/Change Request Package: HTTP_Session2 Operating System: Win7 Package Version: 0.7.3 PHP Version: 5.3.1 Assigned To: till Roadmap Versions: New Comment: Just to make sure: To try this: svn co http://svn.php.net/repository/pear/packages/HTTP_Session2/trunk ./HTTP_Session2-trunk/ cd HTTP_Session2-trunk/ sudo pear install -f package.xml ;-) Previous Comments: ------------------------------------------------------------------------ [2010-09-03 14:21:14] till -Status: Verified +Status: Feedback Please provide feedback: http://svn.php.net/viewvc?view=revision&revision=303027 ------------------------------------------------------------------------ [2010-09-03 14:15:52] till -Status: Open +Status: Verified -Assigned To: +Assigned To: till -Roadmap Versions: +Roadmap Versions: 0.8.0 ------------------------------------------------------------------------ [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

« previous php.pear.bugs (#4763) next »