zend-db icon indicating copy to clipboard operation
zend-db copied to clipboard

Count always empty on Oci8 adapter

Open harrysbaraini opened this issue 10 years ago • 1 comments

Hello,

I can't get DB-Connected resources fetch single item from Oracle. I always get a "Item not found" message, but I've noticed that it only occurs when I call $resultSet->count(), because it returns null.

$resultSet = $this->table->select([ $this->identifierName => $id ]);

if (0 === $resultSet->count()) {
    throw new \Exception('Item not found', 404);
}

return $resultSet->current();

Is there any restriction to the Oci8 adapter?

I can get it to work if I don't check count() function, but to do so, I have to overwrite every DB-Connected resource class.

harrysbaraini avatar Oct 20 '15 20:10 harrysbaraini

This repository has been closed and moved to laminas/laminas-db; a new issue has been opened at https://github.com/laminas/laminas-db/issues/137.

michalbundyra avatar Jan 16 '20 19:01 michalbundyra