mysql_read_query_result
mysql_read_query_result reads the result of a statement previously sent with mysql_send_query, and must be called once for each successful mysql_send_query call.
Syntax
my_bool mysql_read_query_result(MYSQL * mysql);Parameter
mysql- a mysql handle, which was previously allocated by mysql_init() or mysql_real_connect().
Description
mysql_read_query_result() reads the result of a SQL statement executed with mysql_send_query(). If the SQL statement returned a result set, it must be freed before the next call to mysql_read_query_result() is made. This is similar to how results from mysql_query() must be processed before another call can be made.
Return Value
Returns zero on success, otherwise non-zero.
Example
For an example how to use mysql_send_query() in an event driven model, please check Jan Kneschke's Blog entry "Async MySQL Queries with C-API".
See Also
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

