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

Bug #8125 report Notice if DBTable not use DB package
Submitted: 2006-07-06 07:20 UTC
From: kenchou77 at gmail dot com Assigned: wiesemann
Status: Closed Package: Structures_DataGrid_DataSource_DBTable (version 0.1.0)
PHP Version: 5.1.4 OS:
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 : 46 - 29 = ?

 
 [2006-07-06 07:20 UTC] kenchou77 at gmail dot com (Ken)
Description: ------------ if use other DB (like MDB2), script got "Notice: Use of undefined constant DB_FETCHMODE_ASSOC" Test script: --------------- $db =& MDB2::factory($DSN); if (PEAR::isError($db)) { exit($db->getMessage()); } $db->setFetchMode(MDB2_FETCHMODE_ASSOC); $user =& new user($db, DB_TABLE_USER); $datagrid =& new Structures_DataGrid($count); $test = $datagrid->bind($user, array('view' =>'list')); if (PEAR::isError($test)) { echo $test->getMessage(); } $datagrid->render(DATAGRID_RENDER_TABLE); //DBTable.php line 142 //- while ($record = $this->_result->fetchRow(DB_FETCHMODE_ASSOC)) { //+ while ($record = $this->_result->fetchRow()) { Expected result: ---------------- //display data list Actual result: -------------- Notice: Use of undefined constant DB_FETCHMODE_ASSOC - assumed 'DB_FETCHMODE_ASSOC' in d:\PEAR\Structures\DataGrid\DataSource\DBTable.php on line 142

Comments

 [2006-07-06 15:43 UTC] wiesemann (Mark Wiesemann)
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/Structures_DataGrid_DataSource_DBTable