Rechercher dans le manuel MySQL
28. 7. 15. 1 mysql _fetch _row _nonblocking ()
enum net_async_status
mysql_fetch_row_nonblocking(MYSQL_RES *result, MYSQL_ROW
*row)
Description
mysql_fetch_row_nonblocking()
is an asynchronous function. It is the counterpart of the
mysql_fetch_row()
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_fetch_row_nonblocking()
is used similarly to
mysql_fetch_row()
. For details
about the latter, see Section 28.7.7.21, “mysql_fetch_row()”. The
two functions differ as follows:
mysql_fetch_row()
returns aMYSQL_ROW
value containing the next row, orNULL
. The meaning of aNULL
return depends on which function was called precedingmysql_fetch_row()
:When used after
mysql_store_result()
ormysql_store_result_nonblocking()
,mysql_fetch_row()
returnsNULL
if there are no more rows to retrieve.When used after
mysql_use_result()
,mysql_fetch_row()
returnsNULL
if there are no more rows to retrieve or an error occurred.
mysql_fetch_row_nonblocking()
returns anenum net_async_status
status indicator and takes a secondrow
argument that provides a pointer to aMYSQL_ROW
value. When the return status isNET_ASYNC_COMPLETE
, therow
argument is a pointer to aMYSQL_ROW
value containing the next row, orNULL
. The meaning ofNULL
depends on which function was called precedingmysql_fetch_row_nonblocking()
:When used after
mysql_store_result()
ormysql_store_result_nonblocking()
, therow
argument isNULL
if there are no more rows to retrieve.When used after
mysql_use_result()
, therow
argument isNULL
if there are no more rows to retrieve or an error occurred.
mysql_fetch_row_nonblocking()
was added in MySQL 8.0.16.
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.
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-fetch-row-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
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.