Result-types state table

The result-types table focuses on routines that return information about result sets. The command state machine defines states (like Fetchable Results and Fetchable Cursor Results) that indicate when results are available. The result-types table goes a step further by indicating the type of available results.

This information is important because certain routines make sense only for certain result types. For example, calling ct_compute_info is only logical when compute results are available, and calling ct_br_column is only logical when regular row results are available. In cases like these, the result-types table enforces the logical sequence of calls.

See “Result types” for a detailed description of each of the result type states. See “Callable routines for each result type” for a mapping of result type states with Client-Library routines.