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.
Last updated
Was this helpful?
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.
int mysql_read_query_result(MYSQL * mysql);mysql - a mysql handle, which was previously allocated by mysql_init() or mysql_real_connect().
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.
Returns zero on success, otherwise non-zero.
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".
Last updated
Was this helpful?
Was this helpful?

