1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-04-18 21:24:07 +03:00
mariadb-connector-c/man/mysql_stmt_init.3
2024-10-25 07:38:00 +02:00

38 lines
1.1 KiB
Groff

.\" Automatically generated by Pandoc 3.5
.\"
.TH "mysql_stmt_init" "3" "" "Version 3.3" "MariaDB Connector/C"
.SS Name
mysql_stmt_init \- Initializes a prepared statement handle
.SS Synopsis
.IP
.EX
#include \f[B]<mysql.h>\f[R]
MYSQL_STMT * mysql_stmt_init(MYSQL * mysql);
.EE
.SS Description
Initializes and allocates memory for a prepared statement.
.SS Parameter
.IP \[bu] 2
\f[CR]mysql\f[R] \- a mysql handle, which was previously allocated by
\f[B]mysql_init(3)\f[R] and connected by
\f[B]mysql_real_connect(3)\f[R].
.SS Return value
Returns a pointer to a \f[CR]MYSQL_STMT\f[R] structure or
\f[CR]NULL\f[R] if an error occurred.
.SS Notes
.IP \[bu] 2
Members of the \f[CR]MYSQL_STMT\f[R] structure are not intended for
application use.
.IP \[bu] 2
A statement handle which was allocated by mysql_stmt_init() needs to be
freed with \f[B]mysql_stmt_close(3)\f[R].
.IP \[bu] 2
Any subsequent calls to any mysql_stmt function will fail until
\f[B]mysql_stmt_prepare(3)\f[R] was called.
.SS See Also
.IP \[bu] 2
\f[B]mysql_stmt_close(3)\f[R]
.IP \[bu] 2
\f[B]mysql_stmt_prepare(3)\f[R]