INFORMIX
DataBlade API Programmer's Manual
Chapter 12: DataBlade API Function Descriptions
Home Contents Index Master Index New Book

mi_get_result()

The mi_get_result() function reports when and how a statement sent to the database server by mi_exec(), mi_exec_prepared_statement(), or mi_fetch_statement() has completed.

Syntax

Usage

The mi_get_result() function is typically executed in a loop that terminates when the function returns MI_NO_MORE_RESULTS.

If mi_get_result() returns MI_ROWS, rows are waiting to be fetched with mi_next_row().

For more information about getting results, see "Using an mi_get_result() Loop".

Return Values

One of the following values (defined in milib.h).
Result Value Meaning

MI_ERROR

On exception

MI_NO_MORE_RESULTS

No more results pending

MI_ROWS

Rows pending

MI_DML

Data Manipulation Language statement completed

MI_DDL

Data Definition Language statement completed

Related Topics

For additional information, see the descriptions of the following functions: mi_server_connect() and mi_next_row().




DataBlade API Programmer's Manual, version 9.1
Copyright © 1998, Informix Software, Inc. All rights reserved.