mysql_stmt_reset(3)
β¨ mysql_stmt_reset β¨
okay bestie, so you know how you can prepare a statement and it just sits there, all ready and waiting? well this little function is the "hit the reset button" of the prepared statement world π and honestly? it's giving fresh start energy.
This page lives in the MariaDB Connector/C manual, and yes, it's the glow-up of mysql_stmt_reset(3).
πΈ SYNOPSIS πΈ
#include <mysql.h>
my_bool mysql_stmt_reset(MYSQL_STMT * stmt);
π DESCRIPTION π
Resets a prepared statement on client and server to the state it was in right after prepare. like, memory-wipe but make it legal π
π¦ PARAMETER π¦
stmtβ a statement handle, which was previously allocated bymysql_stmt_init(3). Returns zero on success, nonzero if an error occurred.
β RETURN VALUE β
Returns zero on success, and 1 if an error occurred. no cap, that's the whole vibe check.
π NOTES π
mysql_stmt_reset()resets the statement on the server, unbuffered result sets and errors. Bindings and stored result sets will not be cleared. The latter one will be cleared when re-executing or closing the prepared statement. (yes bestie, it's picky about what it forgets π)- To reprepare a prepared statement with another SQL statement use
mysql_stmt_prepare(3).
π SEE ALSO π
okay that's the whole page, go reset something (responsibly) π«Ά
Version 3.4 of the MariaDB Connector/C manual, <pink>mysql_stmt_reset(3)</pink> β mwah, iconic, bye bestie π
β¨π
π¦ where this page comes from
- alpine 3.22: mariadb-doc 11.4.13-r0 Β· GPL-2.0-or-later
- alpine 3.23: mariadb-doc 11.4.13-r0 Β· GPL-2.0-or-later
- alpine 3.24: mariadb-doc 11.8.9-r0 Β· GPL-2.0-only
- arch rolling: mariadb 13.0.2-2 Β· GPL-2.0-only
- arch rolling: mariadb-lts 12.3.3-2 Β· GPL-2.0-only
- centos-stream 10: mariadb-connector-c-doc 3.4.4-2.el10 Β· LGPL-2.1-or-later
- debian trixie: libmariadb-dev 1:11.8.6-0+deb13u1 Β· GPL-2.0-only
- fedora 43: mariadb-connector-c-doc 3.4.5-2.fc43 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01
- fedora 43: mariadb-connector-c-doc 3.4.9-2.fc43 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01 AND LicenseRef-Fedora-Public-Domain
- fedora 44: mariadb-connector-c-doc 3.4.8-3.fc44 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01
- fedora 44: mariadb-connector-c-doc 3.4.9-2.fc44 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01 AND LicenseRef-Fedora-Public-Domain
- nixpkgs unstable: mariadb-server 11.8.8
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- ubuntu questing: libmariadb-dev 1:11.8.3-1build1
- ubuntu resolute: libmariadb-dev 1:11.8.6-5 Β· GPL-2.0-only
- ubuntu resolute: libmariadb-dev 1:11.8.6-5ubuntu0.1 Β· GPL-2.0-only
- ubuntu stonking: libmariadb-dev 1:11.8.9+ds-4ubuntu2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms