informix
Informix DataBlade API Programmer's Manual
DataBlade API Function Descriptions

mi_command_is_finished()

The mi_command_is_finished() function reports whether the current statement has finished executing.

Syntax

Usage

The mi_command_is_finished() function determines whether execution has completed for the current statement on the connection that conn references. The current statement is the most recently executed SQL statement sent to the database server on that connection. The current statement is finished when either of the following conditions occurs:

The current statement must be finished before the database server can process the next statement. Use the mi_query_finish() function to force a statement to finish processing.

Return Values

0 indicates that the current statement active on the current connection has not completed.
1 indicates that the current statement active on the current connection has completed.
MI_ERROR indicates that the function was not successful.

Related Topics

See the descriptions of the following functions: mi_server_connect(), mi_get_result(), and mi_query_finish().


Informix DataBlade API Programmer's Manual, Version 9.2
Copyright © 1999, Informix Software, Inc. All rights reserved