Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

ctdbGetLogonOnly

Retrieve the session logon only flag.

Declaration

CTBOOL ctdbGetLogonOnly(CTHANDLE Handle)

Description

ctdbGetLogonOnly() retrieves the session logon only flag. This flag, when set to YES before the session Logon, will prevent the session from using the session dictionary. If the session dictionary may not be used, the database dictionary cannot be used. With this, any information related to databases or tables cannot be use, but the tables can yet be opened or created using the session handle.

To set the flag, use ctdbSetLogonOnly().

  • Handle [in] the session handle.

Returns

ctdbGetLogonOnly() returns YES if the flag was set, and NO otherwise.

Example


if (!cdbGetLogonOnly(hSession))

err = ctdbConnect(hDatabase, "MyDatabase");

See also

ctdbSetLogonOnly()

TOCIndex