]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed typo that was preventing correct BLOB storage under Oracle.
authorstronk7 <stronk7>
Tue, 17 Oct 2006 18:31:56 +0000 (18:31 +0000)
committerstronk7 <stronk7>
Tue, 17 Oct 2006 18:31:56 +0000 (18:31 +0000)
Merged from MOODLE_17_STABLE

lib/dmllib.php

index 031c951fa561cccbdfd2ff83ea72615533ececeb..7b5d5b7dc48c3632b6e77c9a45973337bcb23c9b 100644 (file)
@@ -1736,7 +1736,7 @@ function oracle_dirty_hack ($table, &$dataobject, $usecache = true) {
 
 /**
  * This function will search for all the CLOBs and BLOBs fields passed in the dataobject, replacing
- * their contents by the fixed strings '@#CLOB#@' and '@#BLOB' and returning one array for all the
+ * their contents by the fixed strings '@#CLOB#@' and '@#BLOB#@' and returning one array for all the
  * found CLOBS and another for all the found BLOBS
  * Used by Oracle drivers to perform the two-step insertion/update of LOBs
  *
@@ -1789,7 +1789,7 @@ function oracle_detect_lobs ($table, &$dataobject, &$clobs, &$blobs, $unset = fa
 
     /// If the field is BLOB, update its value to '@#BLOB#@' and store it in the $blobs array
         if ($columns[strtolower($fieldname)]->type == 'BLOB') { // && strlen($dataobject->$fieldname) > 3999
-            $clobs[$fieldname] = $dataobject->$fieldname;
+            $blobs[$fieldname] = $dataobject->$fieldname;
             if ($unset) {
                 unset($dataobject->$fieldname);
             } else {