Welcome Guest, Not a member yet? Register   Sign In
Execute Oracle procedure with one OUT parameter
#3

(05-15-2017, 03:42 PM)donpwinston Wrote: try

$this->db->call_function('Sample', $id, $title, &$status_code);

You might have to rewrite your procedure into a function and return $status_code instead of using it as a param.

Hey donpwinston,

Thanks for reply i got below error while using &$status_code
Code:
Fatal error: Call-time pass-by-reference has been removed

Hence, i created function and returned the value.

$this->db->query("SELECT Sample($id, $title) FROM dual");

This works fine. Smile

But still executing procedure with OUT param is a mystery for me.
Reply


Messages In This Thread
RE: Execute Oracle procedure with one OUT parameter - by zashishz - 05-17-2017, 09:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB