1mariadb_cancel(3)             MariaDB Connector/C            mariadb_cancel(3)
2
3
4
5   Name
6       mariadb_cancel - Immediately aborts a connection
7
8   Synopsis
9              #include <mysql.h>
10
11              int mariadb_cancel(MYSQL * mysql);
12
13   Description
14       Immediately aborts a connection by making all subsequent read/write op‐
15       erations fail.  mariadb_cancel() does not invalidate  memory  used  for
16       mysql  structure,  nor  close  any communication channels.  To free the
17       memory, mysql_close(3) must be called.  mariadb_cancel() is  useful  to
18       break long queries in situations where sending KILL is not possible.
19
20   Parameter
21       mysql  -  mysql handle, which was previously allocated by mysql_init(3)
22       and connected by mysql_real_connect(3).
23
24   Return value
25       Returns zero on success or a non-zero value on error.
26
27   History
28       mariadb_cancel() was added in Connector/C 3.0
29
30
31
32Version 3.3.1                                                mariadb_cancel(3)
Impressum