From 8b30c9533280bd61a0631abca3f81958bb267260 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Mon, 21 Sep 2009 11:38:04 +0000 Subject: [PATCH] MDL-17491 Better fetching this way :-) --- lib/dml/oci_native_moodle_recordset.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dml/oci_native_moodle_recordset.php b/lib/dml/oci_native_moodle_recordset.php index cfdc70fa45..44533fb1df 100644 --- a/lib/dml/oci_native_moodle_recordset.php +++ b/lib/dml/oci_native_moodle_recordset.php @@ -42,7 +42,7 @@ class oci_native_moodle_recordset extends moodle_recordset { } private function fetch_next() { - if ($row = oci_fetch_assoc($this->stmt)) { + if ($row = oci_fetch_array($this->stmt, OCI_ASSOC + OCI_RETURN_NULLS + OCI_RETURN_LOBS)) { $row = array_change_key_case($row, CASE_LOWER); unset($row['oracle_rownum']); array_walk($row, array('oci_native_moodle_database', 'onespace2empty')); -- 2.39.5