Product Documentation

FairCom Direct SQL for C and C++

Previous Topic

Next Topic

ctsqlSetPreserveCursor

Sets the connection Preserve Cursor option before calling ctsqlConnect. To be used before calling ctsqlConnect. If the connection is active, ctsqlSetPreserveCursor will fail.

Declaration

Preserve Cursor set to CTSQL_TRUE (1) indicates that cursors are not closed when the current transaction ends. the default is CTSQL_FALSE (0).

CTSQLRET ctsqlDECL ctsqlSetPreserveCursor (pCTSQLCONN hConn, BIT flag)

Parameters:

  • hConn [IN] - connection handle
  • flag [IN] - (1) indicates that cursors are not closed when the current transaction ends. Default: CTSQL_FALSE (0).

Return

Return CTSQLRET_OK on success.

TOCIndex