DB2 Version 10.1 for Linux, UNIX, and Windows

sqleGetCurrentCtx API - Get current context

Returns the current context associated with a thread.

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
  sqleGetCurrentCtx (
        void ** ppCtx,
        void * reserved,
        struct sqlca * pSqlca);

sqleGetCurrentCtx API parameters

ppCtx
Output. A data area allocated out of private memory for the storage of context information.
reserved
Reserved for future use. Must be set to NULL.
pSqlca
Output. A pointer to the sqlca structure.