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

Bug #13394 "quote_identifiers_tableinfo" bug in Generator.php line 394
Submitted: 2008-03-14 22:07 UTC
From: warstar Assigned: alan_k
Status: Closed Package: DB_DataObject (version 1.8.8)
PHP Version: 5.2.1 OS: Windows Server 2003 / Apache
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 : 50 - 10 = ?

 
 [2008-03-14 22:07 UTC] warstar (Warnar Boekkooi)
Description: ------------ When using 'quote_identifiers_tableinfo' option when generating database objects on line 394 this option is not used. The fix is very easy replace: $res =& $DB->query('SHOW CREATE TABLE ' . $this->table ); With: $quotedTable = !empty($options['quote_identifiers_tableinfo']) ? '.`' . $this->table . '`' : $this->table; $res =& $DB->query('SHOW CREATE TABLE ' . $quotedTable ); Hope you can fix this.

Comments

 [2008-09-17 23:42 UTC] alan_k (Alan Knowles)
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. thx - commited to CVS