Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.1.2

Bug #4189 update() quote even if "raw" option is set
Submitted: 2005-04-20 15:46 UTC
From: marcin dot krzyzanowski at gmail dot com Assigned: quipo
Status: Closed Package: DB_QueryTool
PHP Version: 5.0.2 OS: MacOSX
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 24 - 5 = ?

 
 [2005-04-20 15:46 UTC] marcin dot krzyzanowski at gmail dot com
Description: ------------ QueryTool/Query.php function update($newData) { $query = array(); // do only set the 'where' part in $query, if a primary column is given // if not the default 'where' clause is used if (isset($newData[$this->primaryCol])) { $query['where'] = $this- >primaryCol.'='.$this->db->quoteSmart($newData[$this- >primaryCol]); (..) this quote "where" clause even if "raw" option is set. Expected result: ---------------- do not quote if raw is enabled Actual result: -------------- quote

Comments

 [2005-04-21 13:29 UTC] quipo
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.