This seems to be the damned line! db must be CFG

This commit is contained in:
stronk7
2007-01-29 01:11:43 +00:00
parent 0389288693
commit 011dd960f4
+1 -1
View File
@@ -2082,7 +2082,7 @@ function db_detect_lobs ($table, &$dataobject, &$clobs, &$blobs, $unset = false,
/// If the field is CLOB, update its value to '@#CLOB#@' and store it in the $clobs array
if (strtoupper($columns[strtolower($fieldname)]->type) == $clobdbtype) {
/// Oracle optimization. CLOBs under 4000cc can be directly inserted (no need to apply 2-phases to them)
if ($db->dbtype == 'oci8po' && strlen($dataobject->$fieldname) < 4000) {
if ($CFG->dbtype == 'oci8po' && strlen($dataobject->$fieldname) < 4000) {
continue;
}
$clobs[$fieldname] = $dataobject->$fieldname;