ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Oracle Nextval issue

April 02, 2009 6:42pm

Subscribe [7]
  • #16 / May 13, 2013 7:43am

    yauda96

    1 posts

    I’m new to CodeIgniter. I try add this line to file oci8_result.php.

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

    in function num_rows()

    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.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases