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

Bug #12353 wrong field name quoting
Submitted: 2007-10-28 15:29 UTC
From: twilo24 Assigned: quipo
Status: Closed Package: DB_QueryTool (version 1.1.0)
PHP Version: 5.2.4 OS: Debian etch 64 bit
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 : 43 - 37 = ?

 
 [2007-10-28 15:29 UTC] twilo24 (Kay Häusler)
Description: ------------ wrong field name quoting Test script: --------------- $db2->setSelect('_spruch, if(length(_spruch) > 50, concat(left(_spruch, 50), "..."), _spruch) as _kurztext'); Expected result: ---------------- SELECT xxx_sprueche.`_spruch`,if(length(xxx_sprueche.`_spruch`) > 50,concat(left(xxx_sprueche.`_spruch`,50),"..."),xxx_sprueche.`_spruch`) AS _kurztext FROM xxx_sprueche ... Actual result: -------------- SELECT xxx_sprueche.`_spruch`,if(length(xxx_sprueche.`_spruch) > 50`,concat(left(xxx_sprueche.`_spruch`,`50`),".``.."),xxx_sprueche.`_spruch)` AS _kurztext FROM xxx_sprueche ...

Comments

 [2008-01-12 13:11 UTC] quipo (Lorenzo Alberton)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.