diff --git a/Oci8Statement.php b/Oci8Statement.php index f3ff426..1f7797a 100644 --- a/Oci8Statement.php +++ b/Oci8Statement.php @@ -248,11 +248,7 @@ public function fetchColumn($colNumber = 0) /** * @todo KLUDGE No read column with type ROWID */ - if (oci_field_type($this->sth, (int)$colNumber) === 'ROWID') { - return null; - } - - return $rs[(int)$colNumber]; + return $this->returnLobs && is_a($rs[(int)$colNumber], 'OCI-Lob') ? null : $rs[(int)$colNumber]; } return false;