OCI_oparse

function

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

Returns: OCI_SUCCESS if the function completes without error.


Declaration
define external integer function OCI_oparse
   (  value OCI_Handle_type cursor,
      value string sqlstm,
      value integer sqllen,
      value integer defflg,
      value integer lngflg
   )


Purpose

This function parses an SQL statement or a PL/SQL block and associates it with a cursor. The parse can, optionally, be deferred.

Input arguments:

Example:

  set RetCode to OCI_oparse
     (  Cursor,
        "insert into Midi values ( 4, :Midi )",
        OCI_NTS,
        OCI_NODEFERRED,
        OCI_ORACLE_V7
     )