CodeIgniter Forums
codeigniter 2.1 with oracle oci8 driver - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: codeigniter 2.1 with oracle oci8 driver (/showthread.php?tid=47647)



codeigniter 2.1 with oracle oci8 driver - El Forum - 12-16-2011

[eluser]Unknown[/eluser]
I'm just wondering if someone just try to use the oci8 implementation of the 2.1 version.

I'm currently trying to used it and I've seen a lot code that just not work at all in the driver.

ex:
into: oci8_result.php
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;
}

what's wrong: $rowcount is not defined anywhere


into: oci8_forge.php
function _create_table
if ($if_not_exists === TRUE)
{
$sql .= 'IF NOT EXISTS ';
}

what's wrong: it's not a valid sql syntax with oracle


Did someone create a patch to fix the driver?