DB2 Version 10.1 for Linux, UNIX, and Windows

sqleDetachFromCtx API - Detach from context

Detaches the context being used by the current thread. The context will be detached only if an attach to that context has previously been made.

Scope

The scope of this API is limited to the immediate process.

Authorization

None

Required connection

None

API include file

sql.h

API and data structure syntax

SQL_API_RC SQL_API_FN
  sqleDetachFromCtx (
        void * pCtx,
        void * reserved,
        struct sqlca * pSqlca);

sqleDetachFromCtx API parameters

pCtx
Input. A valid context previously allocated by sqleBeginCtx.
reserved
Reserved for future use. Must be set to NULL.
pSqlca
Output. A pointer to the sqlca structure.