1mysql_stmt_init(3)            MariaDB Connector/C           mysql_stmt_init(3)
2
3
4
5   Name
6       mysql_stmt_init - Initializes a prepared statement handle
7
8   Synopsis
9              #include <mysql.h>
10
11              MYSQL_STMT * mysql_stmt_init(MYSQL * mysql);
12
13   Description
14       Initializes and allocates memory for a prepared statement.
15
16   Parameter
17       • mysql   -   a   mysql  handle,  which  was  previously  allocated  by
18         mysql_init(3) and connected by mysql_real_connect(3).
19
20   Return value
21       Returns a pointer to a MYSQL_STMT structure or NULL  if  an  error  oc‐
22       curred.
23
24   Notes
25       • Members  of the MYSQL_STMT structure are not intended for application
26         use.
27
28       • A statement handle which was allocated by mysql_stmt_init() needs  to
29         be freed with mysql_stmt_close(3).
30
31       • Any  subsequent  calls  to  any  mysql_stmt  function will fail until
32         mysql_stmt_prepare(3) was called.
33
34   See Also
35mysql_stmt_close(3)
36
37mysql_stmt_prepare(3)
38
39
40
41Version 3.3.1                                               mysql_stmt_init(3)
Impressum