No cache version.

Caching disabled. Default setting for this page:enabled (code DEF204)
If the display is too slow, you can disable the user mode to view the cached version.

Rechercher dans le manuel MySQL

28. 7. 15. 6 mysql _store _result _nonblocking ()

enum net_async_status mysql_store_result_nonblocking(MYSQL *mysql, MYSQL_RES **result )

Description
Note

mysql_store_result_nonblocking() is an asynchronous function. It is the counterpart of the mysql_store_result() synchronous function, for use by applications that require asynchronous communication with the server. For general information about writing asynchronous C API applications, see Section 28.7.12, “C API Asynchronous Interface”.

mysql_store_result_nonblocking() is used similarly to mysql_store_result(). For details about the latter, see Section 28.7.7.79, “mysql_store_result()”. The two functions differ as follows:

  • mysql_store_result() returns a pointer to a MYSQL_RESULT value that contains the result set, or NULL if there is no result set or an error occurred.

  • mysql_store_result_nonblocking() returns an enum net_async_status status indicator and takes a second result argument that is the address of a pointer to a MYSQL_RESULT into which to store the result set. When the return status is NET_ASYNC_COMPLETE, the result argument is NULL if there is no result set or an error occurred.

mysql_store_result_nonblocking() was added in MySQL 8.0.16.

Contents Haut

Return Values

Returns an enum net_async_status value. See the description in Section 28.7.13, “C API Asynchronous Interface Data Structures”. A NET_ASYNC_ERROR return status indicates an error.

When the return status is NET_ASYNC_COMPLETE, the result argument is NULL if there is no result set or an error occurred. To determine whether an error occurred, check whether mysql_error() returns a nonempty string, mysql_errno() returns nonzero, or mysql_field_count() returns zero.


Find a PHP function

Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-mysql-store-result-nonblocking.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:en Manuel MySQL : https://dev.mysql.com/

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.

Contents Haut