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  


 [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.