Server transaction states

Server transaction state information is useful when an application needs to determine the outcome of a transaction. Table 4-1 lists the symbolic values that represent transaction states.

Table 4-1: Transaction states

Symbolic value

Meaning

CS_TRAN_IN_PROGRESS

A transaction is in progress.

CS_TRAN_COMPLETED

The most recent transaction completed successfully.

CS_TRAN_STMT_FAIL

The most recently executed statement in the current transaction failed.

CS_TRAN_FAIL

The most recent transaction failed.

CS_TRAN_UNDEFINED

A transaction state is not defined.

For information about how to retrieve server transaction states in mainline code and from within a server callback routine, see the “Error and Message Handling” topics page in the Open Client Client-Library/C Reference Manual.