EllisLab/CodeIgniter — Issue #682: Return error in oci8_result.php, function num_rows
Author: 80centimes
Created: 2011-11-19 19:54:30+00:00
State: open

Seems that final return in function num_rows() must be :

return $this->num_rows;

and not return $rowcount;

public function num_rows()
{
if ($this->num_rows === 0 && count($this->result_array()) > 0)
{
$this->num_rows = count($this->result_array());
@oci_execute($this->stmt_id);

if ($this->curs_id)
{
@oci_execute($this->curs_id);
}
}

return $rowcount;
}