Welcome Guest, Not a member yet? Register   Sign In
working w/stored proc that return multiple result sets
#2

You should be able to call more than one stored procedure, just by calling ->next_result(). I'm not sure if CI3 has ->next_result(), but if it doesn't you will need a hack:
PHP Code:
/*/system/database/drivers/mysqli/mysqli_result.php

This is the only system hack, and was necessary because CodeIgniter
does not currently allow more than one stored procedure to be run 
during the same request.

The following method was added to the CI_DB_mysqli_result class:*/


/**
 * Read the next result
 *
 * @return  null
 */
   
function next_result()
{
    if (is_object($this->conn_id))
    {
        return mysqli_next_result($this->conn_id);
    }
}

// -------------------------------------------------------------------- 
Reply


Messages In This Thread
RE: working w/stored proc that return multiple result sets - by skunkbad - 12-07-2015, 03:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB