ORA-06502: PL/SQL: numeric or value error: character string buffer too small - Executing using OCI interface

后端 未结 1 930
春和景丽
春和景丽 2020-12-21 19:02

I am completely flaberghasted and dont understand what i need to do to fix this error. I have a plsql procedure that accepts a varchar2 string and an OUT param which is a nu

相关标签:
1条回答
  • 2020-12-21 20:01

    I'm no PHP guy, but from the docs:

    "You must specify maxlength when using an OUT bind so that PHP allocates enough memory to hold the returned value."

    Maybe try something like:

       //  Bind the input parameter
       oci_bind_by_name($stmt1,':MEMBER_NAME',$MEMBER_NAME);
       oci_bind_by_name($stmt1,':MEMBER_ID',$MEMBER_ID,20,SQLT_INT);
    

    Not sure about the SQLT_INT data type specification necessity.

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