Table A-2 maps each command state to the Client-Library routines that an application can call while in that state. It also identifies the state of the command after the routine has completed.
Beginning state |
Callable routines |
Resulting command state |
---|---|---|
Idle |
ct_cancel(CS_CANCEL_ALL) ct_cancel(CS_CANCEL_ATTN) |
|
ct_cmd_drop |
Idle. |
|
ct_cmd_props |
Idle. |
|
Idle |
ct_command |
|
ct_cursor |
|
|
ct_dynamic |
|
|
ct_dyndesc |
Idle. |
|
ct_dynsqlda |
Idle. |
|
ct_sendpassthru |
|
|
Command initiated |
ct_cancel(CS_CANCEL_ALL) |
|
ct_cancel(CS_CANCEL_ATTN) |
Command initiated. |
|
ct_cmd_props |
Command initiated. |
|
ct_cursor |
Command initiated. |
|
ct_data_info(CS_SET) |
Command initiated. |
|
ct_dyndesc |
Command initiated. |
|
ct_dynsqlda |
Command initiated. |
|
ct_param |
Command initiated. |
|
ct_setparam |
Command initiated. |
|
ct_send |
|
|
ct_send_data |
|
|
Command sent |
ct_cancel(CS_CANCEL_ALL) |
|
ct_cancel(CS_CANCEL_ATTN) |
|
|
ct_cmd_props |
Command sent. |
|
ct_dynsqlda |
Command sent. |
|
ct_dyndesc |
Command sent. |
|
ct_recvpassthru |
|
|
ct_results |
|
|
Non-fetchable results available |
ct_br_column |
Non-fetchable results available. |
ct_br_table |
Non-fetchable results available. |
|
ct_cancel(CS_CANCEL_ALL) |
|
|
ct_cancel(CS_CANCEL_ATTN) |
|
|
Non-fetchable results available |
ct_cancel(CS_CANCEL_CURRENT) |
|
ct_cmd_props |
Non-fetchable results available. |
|
ct_compute_info |
Non-fetchable results available. |
|
ct_describe |
Non-fetchable results available. |
|
ct_dyndesc |
Non-fetchable results available. |
|
ct_dynsqlda |
Non-fetchable results available. |
|
ct_getformat |
Non-fetchable results available. |
|
ct_res_info |
Non-fetchable results available. |
|
ANSI-style cursor end-data |
ct_results |
|
ct_bind |
ANSI-style cursor end-data. |
|
ct_br_column |
ANSI-style cursor end-data. |
|
ct_br_table |
ANSI-style cursor end-data. |
|
ct_cancel(CS_CANCEL_ALL) |
|
|
ct_cancel(CS_CANCEL_ATTN) |
|
|
ct_cancel(CS_CANCEL_CURRENT) |
ANSI-style cursor end-data. |
|
ct_cmd_props |
ANSI-style cursor end-data. |
|
ct_compute_info |
ANSI-style cursor end-data. |
|
ct_describe |
ANSI-style cursor end-data. |
|
ct_dyndesc |
ANSI-style cursor end-data. |
|
ct_dynsqlda |
ANSI-style cursor end-data. |
|
ct_fetch |
|
|
ANSI-style cursor end-data |
ct_getformat |
ANSI-style cursor end-data. |
ct_res_info |
ANSI-style cursor end-data. |
|
ct_results |
|
|
Fetchable results |
ct_bind |
Fetchable results. |
ct_br_column |
Fetchable results. |
|
ct_br_table |
Fetchable results. |
|
ct_cancel(CS_CANCEL_ALL) |
|
|
ct_cancel(CS_CANCEL_ATTN) |
|
|
ct_cancel(CS_CANCEL_CURRENT) |
|
|
ct_cmd_props |
Fetchable results. |
|
ct_compute_info |
Fetchable results. |
|
ct_describe |
Fetchable results. |
|
ct_dyndesc |
Fetchable results. |
|
ct_dynsqlda |
Fetchable results. |
|
ct_fetch |
|
|
ct_getformat |
Fetchable results. |
|
ct_res_info |
Fetchable results. |
|
Fetchable cursor results |
ct_bind |
Fetchable cursor results. |
ct_cancel(CS_CANCEL_ALL) |
|
|
ct_cancel(CS_CANCEL_ATTN) |
|
|
ct_cancel(CS_CANCEL_CURRENT) |
|
|
ct_cmd_props |
Fetchable cursor results. |
|
ct_cursor |
|
|
ct_describe |
Fetchable cursor results. |
|
ct_dyndesc |
Fetchable cursor results. |
|
ct_dynsqlda |
Fetchable cursor results. |
|
ct_fetch |
|
|
ct_getformat |
Fetchable cursor results. |
|
ct_res_info |
Fetchable cursor results. |
|
Fetchable nested command |
ct_cancel(CS_CANCEL_ALL) |
|
ct_cancel(CS_CANCEL_ATTN) |
|
|
ct_cmd_props |
Fetchable nested command. |
|
ct_dyndesc |
Fetchable nested command. |
|
ct_dynsqlda |
Fetchable nested command. |
|
ct_param |
Fetchable nested command. |
|
ct_setparam |
Fetchable nested command. |
|
ct_send |
|
|
Sent fetchable nested |
ct_cancel(CS_CANCEL_ALL) |
|
ct_cancel(CS_CANCEL_ATTN) |
|
|
ct_cmd_props |
Sent fetchable nested. |
|
ct_results |
|
|
Processing fetchable nested command |
ct_cancel(CS_CANCEL_ALL) |
|
ct_cancel(CS_CANCEL_ATTN) |
|
|
ct_cancel(CS_CANCEL_CURRENT) |
|
|
ct_cmd_props |
Processing fetchable nested command. |
|
ct_dyndesc |
Processing fetchable nested command. |
|
ct_dynsqlda |
Processing fetchable nested command. |
|
ct_res_info |
Processing fetchable nested command. |
|
ct_results |
|
|
Fetching results |
ct_bind |
Fetching results. |
ct_br_column |
Fetching results. |
|
ct_br_table |
Fetching results. |
|
ct_cancel(CS_CANCEL_ALL) |
|
|
ct_cancel(CS_CANCEL_ATTN) |
|
|
ct_cancel(CS_CANCEL_CURRENT) |
|
|
ct_cmd_props |
Fetching results. |
|
ct_compute_info |
Fetching results. |
|
ct_data_info(CS_GET) |
Fetching results. |
|
ct_describe |
Fetching results. |
|
ct_dyndesc |
|
|
Fetching results |
ct_dynsqlda |
|
ct_fetch |
|
|
ct_get_data |
|
|
ct_getformat |
Fetching results. |
|
ct_res_info |
Fetching results. |
|
Fetching cursor results |
ct_bind |
Fetching cursor results. |
ct_cancel(CS_CANCEL_ALL) |
|
|
ct_cancel(CS_CANCEL_ATTN) |
|
|
ct_cancel(CS_CANCEL_CURRENT) |
|
|
ct_cmd_props |
Fetching cursor results. |
|
ct_cursor |
|
|
ct_describe |
Fetching cursor results. |
|
ct_dyndesc |
|
|
ct_dynsqlda |
|
|
ct_fetch |
|
|
ct_get_data |
|
|
ct_getformat |
Fetching cursor results. |
|
ct_keydata |
Fetching cursor results. |
|
ct_res_info |
Fetching cursor results. |
|
Fetching nested command |
ct_cancel(CS_CANCEL_ALL) |
|
ct_cancel(CS_CANCEL_ATTN) |
|
|
ct_cmd_props |
Fetching nested command. |
|
ct_dyndesc |
Fetching nested command. |
|
ct_dynsqlda |
Fetching nested command. |
|
ct_param |
Fetching nested command. |
|
ct_setparam |
Fetching nested command. |
|
ct_send |
|
|
Sent fetching nested command |
ct_cancel(CS_CANCEL_ALL) |
|
ct_cancel(CS_CANCEL_ATTN) |
|
|
ct_cmd_props |
Sent fetching nested command. |
|
ct_results |
|
|
Processing fetching nested command |
ct_cancel(CS_CANCEL_ALL) |
|
ct_cancel(CS_CANCEL_ATTN) |
|
|
ct_cancel(CS_CANCEL_CURRENT) |
|
|
ct_cmd_props |
Processing fetching nested command. |
|
ct_dyndesc |
Processing fetching nested command. |
|
ct_dynsqlda |
Processing fetching nested command. |
|
ct_keydata |
Processing fetching nested command. |
|
ct_res_info |
Processing fetching nested command. |
|
ct_results |
|
|
Result set canceled |
ct_cancel(CS_CANCEL_ALL) |
|
ct_cancel(CS_CANCEL_ATTN) |
|
|
ct_cmd_drop |
Idle. |
|
ct_cmd_props |
Idle. |
|
ct_command |
|
|
ct_cursor |
|
|
ct_dynamic |
|
|
ct_dyndesc |
|
|
ct_dynsqlda |
|
|
ct_results |
|
|
ct_sendpassthru |
Result set canceled. |
|
Undefined |
ct_cancel(CS_CANCEL_ALL) |
|
ct_cancel(CS_CANCEL_ATTN) |
Undefined. |
|
ct_cmd_props |
Undefined. |
|
ct_dyndesc |
Undefined. |
|
ct_dynsqlda |
Undefined. |
|
In receive passthrough |
ct_cancel(CS_CANCEL_ALL) |
|
ct_cancel(CS_CANCEL_ATTN) |
|
|
ct_cmd_props |
In receive passthrough. |
|
ct_recvpassthru |
|
|
In send passthrough |
ct_cancel(CS_CANCEL_ALL) |
|
ct_cancel(CS_CANCEL_ATTN) |
|
|
ct_cmd_props |
In send passthrough. |
|
ct_sendpassthru |
|