Re: Bug #4027 [Opn->Fbk]: DB_common::setFetchMode not support DB_FETCHMODE_FLIPPED

From: Date: Thu, 07 Apr 2005 14:42:45 +0000
Subject: Re: Bug #4027 [Opn->Fbk]: DB_common::setFetchMode not support DB_FETCHMODE_FLIPPED
References: 1  Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-2696@lists.php.net to get a copy of this message
Hi Koyama: For future reference, please keep all comments inside the bug system, not on the mailing lists. On Thu, Apr 07, 2005 at 09:22:53PM +0900, KOYAMA Tetsuji wrote: > I can't understand why I must write test code to report a bug. In order to prove it's a bug in DB as opposed to your script. Then, if it is a bug in DB, the test script provides a means to ensure the changes made to DB actually fixed the bug. > I wrote unit test code with PHPunit for my sample. Is it OK? Test scripts need to be simple. All that was needed to demonstrate the bug is: <?php $res = $db->setFetchMode(DB_FETCHMODE_ASSOC | DB_FETCHMODE_FLIPPED); if (PEAR::isError($res)) { echo $res->getMessage() . "\n"; } ?> As it turns out, it was a documentation error. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409

« previous php.pear.qa (#2696) next »