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

mi_result_command_name()

The mi_result_command_name() function returns a null-terminated character string pointing to the last statement or command sent to the database server on a specified connection.

Syntax

Usage

The mi_result_command_name() function returns just the verb (such as SELECT), not the whole statement or command line.

This function can be used only after mi_get_result() returns MI_DML or MI_DDL.

Return Values

On success, returns a pointer to the current statement; on failure, returns NULL.

Related Topics

For additional information, see the descriptions of the following functions: mi_get_result(), mi_result_row_count(), and mi_statement_command_name().




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