Merge branch 'w12_MDL-26842_20_ociparams' of git://github.com/skodak/moodle

This commit is contained in:
Eloy Lafuente (stronk7)
2011-03-21 16:38:19 +01:00
+3 -2
View File
@@ -867,11 +867,12 @@ class oci_native_moodle_database extends moodle_database {
}
foreach($params as $key => $value) {
// Decouple column name and param name as far as sometimes they aren't the same
$columnname = $key; // Default columnname (for DB introspecting is key), but...
if ($key == 'newfieldtoset') { // found case where column and key diverge, handle that
if ($key == 'o_newfieldtoset') { // found case where column and key diverge, handle that
$columnname = key($value); // columnname is the key of the array
$params[$key] = $value[$columnname]; // set the proper value in the $params array and
$value = $value[$columnname]; // set the proper value in the $value variable
} else {
$columnname = preg_replace('/^o_/', '', $key); // Default columnname (for DB introspecting is key), but...
}
// Continue processing
// Now, handle already detected LOBs