Subversion Repositories oidplus

Compare Revisions

Regard whitespace Rev 785 → Rev 786

/trunk/plugins/viathinksoft/database/pdo/OIDplusQueryResultPDO.class.php
90,13 → 90,6
$obj = new stdClass;
foreach ($ary as $name => $val) {
$obj->$name = $val;
 
// Oracle returns $ret['VALUE'] because unquoted column-names are always upper-case
// We can't quote every single column throughout the whole program, so we use this workaround...
$name = strtolower($name);
$obj->$name = $val;
$name = strtoupper($name);
$obj->$name = $val;
}
return $obj;
}
111,6 → 104,16
if ($ret === false) $ret = null;
}
if ($ret) $this->countAlreadyFetched++;
 
// Oracle returns $ret['VALUE'] because unquoted column-names are always upper-case
// We can't quote every single column throughout the whole program, so we use this workaround...
if ($ret) {
foreach ($ret as $name => $val) {
$ret->{strtoupper($name)} = $val;
$ret->{strtolower($name)} = $val;
}
}
 
return $ret;
}
}