KI_REDIR_CONNECT

Redirect a connection

Synopsis:
CALL KI_REDIR_CONNECT conn, redirconn, type TO status
status = 'ki_redir_connect( conn, redirconn, type )
ArgumentEnumerationPurpose
connConnect to be redirected
redirconnConnect redirected to
typeType of redirection
statusKDB_ERROR_ENUMReturn status
>KI_REDIR_CONNECT

KI_REDIR_CONNECT

This allows redirections of some functions from connection handle conn to another redirconn. Both connection handles must exist having been allocated by KI_ALLOC_CONNECT and instantiated by KI_CONNECT. The type enumeration determines which functionality is to be redirected by means of a bit mask containing one or more of the following bits:

Bit Purpose Functions affected SQL affected
0x01 Temporary tables KI_OPEN CREATE TABLE
CREATE INDEX
0x02 Word search indexing KI_WS_START
KI_WS_READ_NEXT
KI_WS_END
KI_WS_NOISE_INFO
CREATE WORD INDEX

Redirecting to the same handle will cancel the redirection for future calls though existing word search result sets will not be affected.

History
Introduced in KCML 6.60
See Also:
KI_ALLOC_CONNECT, KI_CLEAR, KI_CONNECT, KI_CONNECT_GET_ATTR, KI_CONNECT_GET_ATTR_STR, KI_CONNECT_SET_ATTR, KI_CONNECT_SET_ATTR_STR, KI_DISCONNECT, KI_ERROR, KI_ERROR_TEXT, KI_FREE_CONNECT, KI_GET_ERROR_TEXT, KI_GET_LANGUAGES, KI_HANDLE_GET_ATTR_POOL, KI_INFO, KI_SET_LANGUAGE, KI_SET_LANGUAGES
KCML database status codes