diff options
Diffstat (limited to 'libmariadb/man/mysql_stmt_init.3')
-rw-r--r-- | libmariadb/man/mysql_stmt_init.3 | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/libmariadb/man/mysql_stmt_init.3 b/libmariadb/man/mysql_stmt_init.3 new file mode 100644 index 00000000..8844aeb2 --- /dev/null +++ b/libmariadb/man/mysql_stmt_init.3 @@ -0,0 +1,43 @@ +.\" Automatically generated by Pandoc 2.5 +.\" +.TH "mysql_stmt_init" "3" "" "Version 3.3.1" "MariaDB Connector/C" +.hy +.SS Name +.PP +mysql_stmt_init \- Initializes a prepared statement handle +.SS Synopsis +.IP +.nf +\f[C] +#include <mysql.h> + +MYSQL_STMT * mysql_stmt_init(MYSQL * mysql); +\f[R] +.fi +.SS Description +.PP +Initializes and allocates memory for a prepared statement. +.SS Parameter +.IP \[bu] 2 +\f[C]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 +.PP +Returns a pointer to a \f[C]MYSQL_STMT\f[R] structure or \f[C]NULL\f[R] +if an error occurred. +.SS Notes +.IP \[bu] 2 +Members of the \f[C]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] |