Skip to content

Commit

Permalink
Ignore ROWID field (convert to null) fix
Browse files Browse the repository at this point in the history
  • Loading branch information
miramir committed May 5, 2015
1 parent 7bad790 commit 5952600
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Oci8Statement.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5952600

Please sign in to comment.