|
The mi_query_interrupt() function interrupts the current statement.
conn | is a pointer to the connection descriptor that a previous call to mi_open(), mi_server_connect(), or mi_server_reconnect() has established. |
block_until_acknowledged | is currently ignored. |
The mi_query_interrupt() function interrupts execution of 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. This function releases the resources for the current statement. If the current statement was a query, mi_query_interrupt() closes any implicit cursor that mi_exec() or mi_exec_prepared_statement() opened to hold the rows.
Tip: The need to process remaining rows of a query is legacy behavior of the Illustra product. Therefore, the DataBlade API continues to support this aspect of mi_query_finish() for backward compatibility with Illustra applications. However, new DataBlade API modules can still use mi_query_finish() to release implicitly allocated resources.
The mi_query_interrupt() function does not affect prepared statements or calls to DataBlade API file-access functions. After mi_query_interrupt() executes, the next iteration of the mi_get_result() function returns a status of MI_NO_MORE_RESULTS.
See the description of the mi_query_finish() function.