This is a read-only copy of the MariaDB Knowledgebase generated on 2024-11-10. For the latest, interactive version please visit https://mariadb.com/kb/.

mysql_stmt_store_result

Syntax

int mysql_stmt_store_result(MYSQL_STMT * stmt);

Description

You must call mysql_stmt_store_result() for every query that successfully produces a result set (SELECT, SHOW, DESCRIBE, EXPLAIN), and only if you want to buffer the complete result set by the client, so that the subsequent mysql_stmt_fetch() call returns buffered data.

Returns zero on success, nonzero if an error occurred.

You can detect whether the statement produced a result set by checking the return value of mysql_stmt_result_metadata() function.

See Also

Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.