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

Bug #12497 Generator works only with DB, but not with MDB2
Submitted: 2007-11-21 16:15 UTC
From: wiesemann Assigned: wiesemann
Status: Closed Package: DB_Table
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2007-11-21 16:15 UTC] wiesemann (Mark Wiesemann)
Manual page: package.database.db-table.intro-generator.php $generator->tables = array('table1', 'table2', 'table3'); doesn't work with MDB2, I had to use DB

Comments

 [2007-11-21 16:16 UTC] wiesemann (Mark Wiesemann)
- summary adjusted - David, can you have a look into this problem?
 [2007-11-22 00:45 UTC] cwiedmann (Carsten Wiedmann)
> David, can you have a look into this problem? I'm not David, but I have the answer ;-) > $generator->tables = array('table1', 'table2', 'table3'); > doesn't work with MDB2, I had to use DB In DB_Table_Generator::getTableDefinition() the Manager/Reverse module was not loaded. DB_Table_Generator::generateTableClassFiles should also return a PEAR_Error, if there occurs any in the getTableDefinition() call. Regards, Carsten
 [2007-11-22 10:39 UTC] wiesemann (Mark Wiesemann)
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. --- Thanks, Carsten. I have changed your patch: the portability setting of MDB2 is now saved, and set back later. This might not be needed, but this follows the idea of resetting the 'idxname_format' setting.