zendframework/zend-db

Count always empty on Oci8 adapter

Opened this issue · 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.

This repository has been closed and moved to laminas/laminas-db; a new issue has been opened at laminas/laminas-db#137.