Bug in oci8.php?

[email protected] ("Paul Rees") Mon, 12 Mar 2001 12:54:02 +0100
Newsgroups php.pear
Message-ID <[email protected]>
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