oci8 and empty LONG-Fields

From: Date: Thu, 03 Feb 2000 18:22:30 +0000
Subject: oci8 and empty LONG-Fields
Groups: php.version4 
Request: Send a blank email to php-version4+get-9738@lists.php.net to get a copy of this message
php4 seems to react differently to empty LONG-Fields... The following code $query = 'select * from test'; $stmt = OCIParse($conn, $query); $result = OCIExecute($stmt); $count = OCIFetchInto($stmt, $array, OCI_ASSOC+OCI_RETURN_NULLS); print "array=".serialize($array); leads to Warning: OCIFetchInto: ORA-01405: fetched column value is NULL when there is a LONG field that is NULL. If the warning comes up this row is not fetched. OCIFetchStatement returns an array where only the column names are set. It contains no values. With php3 I do not get the warning and the data is as expected. I would like to know wether this behavour is intentional and I have to use NVL functions or will some day php4 react just like php3? Or is there maybe a work around? Martin

« previous php.version4 (#9738) next »