I\'m having a problem with propel 1.6 and a oracle procedure. I post it under PDO because I\'m Propel just for proxying my call to PDO.
Basically the procedure get t
checks that is OK and return the user
No - according to the prototype it returns a cursor. Cursors have no meaning outside PL/SQL. If you change the type to a sys_refcursor and explicitly initialize $result_arr as an array, I'd expect it to have a better chance to work.
Although looking at Alvaro's answer and the absence of a non-scalar paramter type I think it might not.
I'd suspect the problem is the first parameter. You tell PDO that it's a string (PDO::PARAM_STR
) but it's actually types.cursorType
. There's a user comment in the PHP manual that suggests that ref cursors are not supported.
Unluckily, the Oracle driver for PDO is experimental and (IMHO) basically abandoned.