OCI_obindps

function

Library: Oracle Call Interface database support (OMOCI legacy)
Include: omoci.xin

Returns: Returns OCI_SUCCESS if the function completes without error.


Declaration
define external integer function OCI_obindps
   (  read-only OCI_Handle_type cursor,
      value integer opcode,
      value string sqlvar,
      value integer sqlvl,
      read-only OCI_Array_type pvctx,
      value integer progvl,
      value integer ftype,
      read-only OCI_Array_type indp,
      read-only OCI_Array_type alen,
      read-only OCI_Array_type arcode,
      value integer pv_skip,
      value integer ind_skip,
      value integer alen_skip,
      value integer rc_skip,
      value integer maxsiz,
      modifiable integer cursiz
   )


Purpose

This function is used to associate an OMX component with a placeholder in an SQL or PL/SQL statement. Unlike older OCI bind calls, this function can be used to bind placeholders that are to be used in piecewise operations or in operations involving arrays.

Input arguments:

Output argument:

Example:

  set RetCode to OCI_obindps
     (  Cursor,
        OCI_PIECEWISE,
        ":Midi",
        OCI_NTS,
        OCI_NULL_ARRAY,
        40000,
        SQLT_LBI,
        OCI_NULL_ARRAY,
        OCI_NULL_ARRAY,
        OCI_NULL_ARRAY,
        0,
        0,
        0,
        0,
        OCI_NOPLSQL,
        DummyCtr
     )