Bug in oci8.php?

From: Date: Mon, 12 Mar 2001 11:54:02 +0000
Subject: Bug in oci8.php?
Groups: php.pear 
Request: Send a blank email to php-pear+get-1796@lists.php.net to get a copy of this message
Hi, This bit of code: if (DB::isError ($result = $db_con -> query ($sql))) handle_db_error ($result); else while ($resultRow = $result -> fetchRow()) { echo $resultRow[0] . '<BR>'; } Returns this Oracle error: Warning: OCIFetchInto: ORA-01002: fetch out of sequence in DB/oci8.php on line 206 But the (I think, equivqlent) native php functions: if (!$result = OCIParse ($db_con, $sql)) handle_db_error ($result); else { OCIExecute ($result); while (OCIFetchInto ($result, $resultRow)) { echo $resultRow[0] . '<BR>'; } } Is it me? (latest PEAR classes from CVS, Oracle 8.1.6 Linux, php 4.04pl1) All the best, -- Paul Rees

« previous php.pear (#1796) next »