1mysql_stmt_reset(3)           MariaDB Connector/C          mysql_stmt_reset(3)
2
3
4
5   Name
6       mysql_stmt_reset - Resets a prepared statement
7
8   Synopsis
9              #include <mysql.h>
10
11              my_bool mysql_stmt_reset(MYSQL_STMT * stmt);
12
13   Description
14       Resets  a  prepared  statement on client and server to state after pre‐
15       pare.
16
17   Parameter
18       • stmt  -  a  statement  handle,  which  was  previously  allocated  by
19         mysql_stmt_init(3).  Returns zero on success, nonzero if an error oc‐
20         curred.
21
22   Return value
23       Returns zero on succes, 1 if an error occured.
24
25   Notes
26       • mysql_stmt_reset() resets the statement on the server, unbuffered re‐
27         sult  sets  and  errors.  Bindings and stored result sets will not be
28         cleared.  The latter one will be cleared when re-executing or closing
29         the prepared statement.
30
31       • To  reprepare  a  prepared  statement  with another SQL statement use
32         mysql_stmt_prepare(3).
33
34   See Also
35mysql_stmt_close(3)
36
37mysql_stmt_prepare(3)
38
39mysql_stmt_execute(3)
40
41
42
43Version 3.3.1                                              mysql_stmt_reset(3)
Impressum