Procedures of Oracle in php with PDO

前端 未结 2 1968
无人及你
无人及你 2021-01-20 20:00

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

相关标签:
2条回答
  • 2021-01-20 20:32

    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.

    0 讨论(0)
  • 2021-01-20 20:40

    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.

    0 讨论(0)
提交回复
热议问题