MDL-17491 Better fetching this way :-)
authorstronk7 <stronk7>
Mon, 21 Sep 2009 11:38:04 +0000 (11:38 +0000)
committerstronk7 <stronk7>
Mon, 21 Sep 2009 11:38:04 +0000 (11:38 +0000)
lib/dml/oci_native_moodle_recordset.php

index cfdc70fa4567143f13fd6de241cee83aebca106c..44533fb1dfdf2c01d59415c8a810b02209f5a314 100644 (file)
@@ -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'));