Welcome Guest, Not a member yet? Register   Sign In
Oracle Nextval issue
#15

[eluser]Unknown[/eluser]
I’m new to CodeIgniter. I try add this line to file oci8_result.php.
Code:
if(!array_key_exists('NEXTVAL',$this->result_array()[0]))

in function num_rows()

Code:
public function num_rows()
{
  if ($this->num_rows === 0 && count($this->result_array()) > 0)
  {
   $this->num_rows = count($this->result_array());

   if(!array_key_exists('NEXTVAL',$this->result_array()[0]))
   @oci_execute($this->stmt_id);

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

  return $this->num_rows;
}

I hope this will help.
I use CI 2.1.3 and this work for me.


Messages In This Thread
Oracle Nextval issue - by El Forum - 04-02-2009, 03:42 PM
Oracle Nextval issue - by El Forum - 04-02-2009, 04:22 PM
Oracle Nextval issue - by El Forum - 04-02-2009, 04:31 PM
Oracle Nextval issue - by El Forum - 04-02-2009, 04:42 PM
Oracle Nextval issue - by El Forum - 04-02-2009, 05:44 PM
Oracle Nextval issue - by El Forum - 04-02-2009, 05:56 PM
Oracle Nextval issue - by El Forum - 04-02-2009, 06:27 PM
Oracle Nextval issue - by El Forum - 04-02-2009, 06:37 PM
Oracle Nextval issue - by El Forum - 04-02-2009, 10:27 PM
Oracle Nextval issue - by El Forum - 04-03-2009, 04:41 AM
Oracle Nextval issue - by El Forum - 04-03-2009, 08:32 AM
Oracle Nextval issue - by El Forum - 10-15-2009, 09:52 AM
Oracle Nextval issue - by El Forum - 10-20-2009, 04:02 PM
Oracle Nextval issue - by El Forum - 03-07-2010, 05:20 PM
Oracle Nextval issue - by El Forum - 05-13-2013, 04:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB