Example #1
0
 internal static int OCIHandleFree(IntPtr hndlp,
     OciHandleType type)
 {
     #if TRACE
     Trace.WriteLineIf(traceOci, string.Format("OCIHandleFree ({0})", type), "OCI");
     #endif
     return OciNativeCalls.OCIHandleFree (hndlp, type);
 }
Example #2
0
 internal static int OCITransRollback(IntPtr svchp,
     IntPtr errhp,
     uint flags)
 {
     #if TRACE
     Trace.WriteLineIf(traceOci, "OCITransRollback", "OCI");
     #endif
     return OciNativeCalls.OCITransRollback (svchp, errhp, flags);
 }
Example #3
0
 internal static int OCIServerDetach(IntPtr srvhp,
     IntPtr errhp,
     uint mode)
 {
     #if TRACE
     Trace.WriteLineIf(traceOci, "OCIServerDetach", "OCI");
     #endif
     return OciNativeCalls.OCIServerDetach (srvhp, errhp, mode);
 }
Example #4
0
 internal static int OCICacheFree(IntPtr envhp,
     IntPtr svchp,
     IntPtr stmthp)
 {
     #if TRACE
     Trace.WriteLineIf(traceOci, "OCICacheFree", "OCI");
     #endif
     return OciNativeCalls.OCICacheFree (envhp, svchp, stmthp);
 }
Example #5
0
 internal static int OCILobClose(IntPtr svchp,
     IntPtr errhp,
     IntPtr locp)
 {
     #if TRACE
     Trace.WriteLineIf(traceOci, "OCILobClose", "OCI");
     #endif
     return OciNativeCalls.OCILobClose (svchp, errhp, locp);
 }
Example #6
0
 internal static int OCITransStart(IntPtr svchp,
     IntPtr errhp,
     uint timeout,
     OciTransactionFlags flags)
 {
     #if TRACE
     Trace.WriteLineIf(traceOci, "OCITransStart", "OCI");
     #endif
     return OciNativeCalls.OCITransStart (svchp, errhp, timeout, flags);
 }
Example #7
0
 internal static int OCILobOpen(IntPtr svchp,
     IntPtr errhp,
     IntPtr locp,
     byte mode)
 {
     #if TRACE
     Trace.WriteLineIf(traceOci, "OCILobOpen", "OCI");
     #endif
     return OciNativeCalls.OCILobOpen (svchp, errhp, locp, mode);
 }
Example #8
0
 internal static int OCILobGetLength(IntPtr svchp,
     IntPtr errhp,
     IntPtr locp,
     out uint lenp)
 {
     #if TRACE
     Trace.WriteLineIf(traceOci, "OCILobGetLength", "OCI");
     #endif
     return OciNativeCalls.OCILobGetLength (svchp, errhp, locp, out lenp);
 }
Example #9
0
 internal static int OCILobTrim(IntPtr svchp,
     IntPtr errhp,
     IntPtr locp,
     uint newlen)
 {
     #if TRACE
     Trace.WriteLineIf(traceOci, "OCILobTrim", "OCI");
     #endif
     return OciNativeCalls.OCILobTrim (svchp, errhp, locp, newlen);
 }
Example #10
0
 internal static int OCISessionEnd(IntPtr svchp,
     IntPtr errhp,
     IntPtr usrhp,
     uint mode)
 {
     #if TRACE
     Trace.WriteLineIf(traceOci, "OCISessionEnd", "OCI");
     #endif
     return OciNativeCalls.OCISessionEnd (svchp, errhp, usrhp, mode);
 }
Example #11
0
 internal static int OCILobGetChunkSize(IntPtr svchp,
     IntPtr errhp,
     IntPtr locp,
     out uint chunk_size)
 {
     #if TRACE
     Trace.WriteLineIf(traceOci, "OCILobGetChunkSize", "OCI");
     #endif
     return OciNativeCalls.OCILobGetChunkSize (svchp, errhp, locp, out chunk_size);
 }
Example #12
0
 internal static int OCILobCharSetForm(IntPtr svchp, 
     IntPtr errhp,
     IntPtr locp,
     out byte csfrm)
 {
     #if TRACE
     Trace.WriteLineIf(traceOci, "OCILobCharSetForm", "OCI");
     #endif
     return OciNativeCalls.OCILobCharSetForm (svchp, errhp, locp, out csfrm);
 }
Example #13
0
 internal static int OCIServerAttach(IntPtr srvhp,
     IntPtr errhp,
     string dblink,
     int dblink_len,
     uint mode)
 {
     #if TRACE
     Trace.WriteLineIf(traceOci, "OCIServerAttach", "OCI");
     #endif
     return OciNativeCalls.OCIServerAttach (srvhp, errhp, dblink, dblink_len, mode);
 }
Example #14
0
 internal static int OCIParamGet(IntPtr hndlp,
     OciHandleType htype,
     IntPtr errhp,
     out IntPtr parmdpp,
     int pos)
 {
     #if TRACE
     Trace.WriteLineIf(traceOci, "OCIParamGet", "OCI");
     #endif
     return OciNativeCalls.OCIParamGet (hndlp, htype, errhp, out parmdpp, pos);
 }
Example #15
0
 internal static int OCINlsGetInfo(IntPtr hndl,
     IntPtr errhp,
     ref byte[] bufp,
     uint buflen,
     ushort item)
 {
     #if TRACE
     Trace.WriteLineIf(traceOci, "OCINlsGetInfo", "OCI");
     #endif
     return OciNativeCalls.OCINlsGetInfo (hndl, errhp, bufp, buflen, item);
 }
Example #16
0
 internal static int OCISessionBegin(IntPtr svchp,
     IntPtr errhp,
     IntPtr usrhp,
     OciCredentialType credt,
     OciSessionMode mode)
 {
     #if TRACE
     Trace.WriteLineIf(traceOci, "OCISessionBegin", "OCI");
     #endif
     return OciNativeCalls.OCISessionBegin (svchp, errhp, usrhp, credt, mode);
 }
Example #17
0
 internal static int OCILobErase(IntPtr svchp,
     IntPtr errhp,
     IntPtr locp,
     ref uint amount,
     uint offset)
 {
     #if TRACE
     Trace.WriteLineIf(traceOci, "OCILobErase", "OCI");
     #endif
     return OciNativeCalls.OCILobErase (svchp, errhp, locp, ref amount, offset);
 }
Example #18
0
 internal static int OCIDescriptorAlloc(IntPtr parenth,
     out IntPtr hndlpp,
     OciHandleType type,
     int xtramem_sz,
     IntPtr usrmempp)
 {
     #if TRACE
     Trace.WriteLineIf(traceOci, "OCIDescriptorAlloc", "OCI");
     #endif
     return OciNativeCalls.OCIDescriptorAlloc (parenth, out hndlpp, type, xtramem_sz, usrmempp);
 }
Example #19
0
 internal static int OCIStmtFetch(IntPtr stmtp,
     IntPtr errhp,
     uint nrows,
     ushort orientation,
     uint mode)
 {
     #if TRACE
     Trace.WriteLineIf(traceOci, "OCIStmtFetch", "OCI");
     #endif
     return OciNativeCalls.OCIStmtFetch (stmtp, errhp, nrows, orientation, mode);
 }
Example #20
0
 internal static int OCIHandleAlloc(IntPtr parenth,
     out IntPtr descpp,
     OciHandleType type,
     int xtramem_sz,
     IntPtr usrmempp)
 {
     #if TRACE
     Trace.WriteLineIf(traceOci, string.Format("OCIHandleAlloc ({0})", type), "OCI");
     #endif
     return OciNativeCalls.OCIHandleAlloc (parenth, out descpp, type, xtramem_sz, usrmempp);
 }
Example #21
0
 internal static int OCIAttrSetString(IntPtr trgthndlp,
     OciHandleType trghndltyp,
     string attributep,
     uint size,
     OciAttributeType attrtype,
     IntPtr errhp)
 {
     #if TRACE
     Trace.WriteLineIf(traceOci, string.Format("OCIAttrSetString ({0}, {1})", trghndltyp, attrtype), "OCI");
     #endif
     return OciNativeCalls.OCIAttrSetString (trgthndlp, trghndltyp, attributep, size, attrtype, errhp);
 }
Example #22
0
 internal static int OCIAttrGetIntPtr(IntPtr trgthndlp,
     OciHandleType trghndltyp,
     out IntPtr attributep,
     IntPtr sizep,
     OciAttributeType attrtype,
     IntPtr errhp)
 {
     #if TRACE
     Trace.WriteLineIf(traceOci, "OCIAttrGetIntPtr", "OCI");
     #endif
     return OciNativeCalls.OCIAttrGetIntPtr (trgthndlp, trghndltyp, out attributep, sizep, attrtype, errhp);
 }
Example #23
0
 internal static int OCIPasswordChange(IntPtr svchp, IntPtr errhp,
     int usernm_len,
     byte [] opasswd,
     int opasswd_len,
     byte [] npasswd,
     int npasswd_len,
     uint mode)
 {
     #if TRACE
     Trace.WriteLineIf(traceOci, string.Format("OCIPasswordChange"), "OCI");
     #endif
     return OciNativeCalls.OCIPasswordChange (svchp, errhp, user_name, (uint) usernm_len, opasswd, (uint) opasswd_len, npasswd, (uint) npasswd_len, mode);
 }
Example #24
0
        internal static int OCIStmtPrepare(IntPtr stmthp,
            IntPtr errhp,
            byte [] stmt,
            int stmt_length,
            OciStatementLanguage language,
            OciStatementMode mode)
        {
            #if TRACE
            Trace.WriteLineIf(traceOci, string.Format("OCIStmtPrepare ({0})", System.Text.Encoding.UTF8.GetString(stmt)), "OCI");
            #endif

            return OciNativeCalls.OCIStmtPrepare (stmthp, errhp, stmt, stmt_length, language, mode);
        }
Example #25
0
 internal static int OCIErrorGet(IntPtr hndlp,
     uint recordno,
     IntPtr sqlstate,
     out int errcodep,
     IntPtr bufp,
     uint bufsize,
     OciHandleType type)
 {
     #if TRACE
     Trace.WriteLineIf(traceOci, "OCIErrorGet", "OCI");
     #endif
     return OciNativeCalls.OCIErrorGet (hndlp, recordno, sqlstate, out errcodep, bufp, bufsize, type);
 }
Example #26
0
 internal static int OCILobCopy(IntPtr svchp,
     IntPtr errhp,
     IntPtr dst_locp,
     IntPtr src_locp,
     uint amount,
     uint dst_offset,
     uint src_offset)
 {
     #if TRACE
     Trace.WriteLineIf(traceOci, "OCILobCopy", "OCI");
     #endif
     return OciNativeCalls.OCILobCopy (svchp, errhp, dst_locp, src_locp, amount, dst_offset, src_offset);
 }
Example #27
0
 internal static int OCIEnvCreate(out IntPtr envhpp,
     OciEnvironmentMode mode,
     IntPtr ctxp,
     IntPtr malocfp,
     IntPtr ralocfp,
     IntPtr mfreep,
     int xtramem_sz,
     IntPtr usrmempp)
 {
     #if TRACE
     Trace.WriteLineIf(traceOci, "OCIEnvCreate", "OCI");
     #endif
     return OciNativeCalls.OCIEnvCreate (out envhpp, mode, ctxp, malocfp, ralocfp, mfreep,
         xtramem_sz, usrmempp);
 }
Example #28
0
 internal static int OCIServerVersion(IntPtr hndlp,
     IntPtr errhp,
     ref byte[] bufp,
     uint bufsz,
     OciHandleType hndltype)
 {
     #if TRACE
     Trace.WriteLineIf(traceOci, "OCIServerVersion", "OCI");
     #endif
     return OciNativeCalls.OCIServerVersion (hndlp,
         errhp,
         bufp,
         bufsz,
         hndltype);
 }
Example #29
0
 internal static int OCIDefineByPosPtr(IntPtr stmtp,
     out IntPtr defnpp,
     IntPtr errhp,
     int position,
     ref IntPtr valuep,
     int value_sz,
     OciDataType dty,
     IntPtr indp,
     IntPtr rlenp,
     IntPtr rcodep,
     uint mode)
 {
     #if TRACE
     Trace.WriteLineIf(traceOci, "OCIDefineByPosPtr", "OCI");
     #endif
     return OciNativeCalls.OCIDefineByPosPtr (stmtp, out defnpp, errhp, position, ref valuep,
         value_sz, dty, indp, rlenp, rcodep, mode);
 }
Example #30
0
 internal static int OCILobRead(IntPtr svchp,
     IntPtr errhp,
     IntPtr locp,
     ref uint amtp,
     uint offset,
     byte[] bufp,
     uint bufl,
     IntPtr ctxp,
     IntPtr cbfp,
     ushort csid,
     byte csfrm)
 {
     #if TRACE
     Trace.WriteLineIf(traceOci, "OCILobRead", "OCI");
     #endif
     return OciNativeCalls.OCILobRead (svchp, errhp, locp, ref amtp, offset, bufp, bufl,
         ctxp, cbfp, csid, csfrm);
 }