1mysql_rollback(3) MariaDB Connector/C mysql_rollback(3)
2
3
4
5 Name
6 mysql_rollback - Rolls back the current transaction
7
8 Synopsis
9 #include <mysql.h>
10
11 my_bool mysql_rollback(MYSQL * mysql);
12
13 Description
14 Rolls back the current transaction for the database. Returns zero on
15 success, nonzero if an error occurred.
16
17 Parameter
18 • mysql - a mysql handle, which was previously allocated by
19 mysql_init(3) and connected by mysql_real_connect(3).
20
21 Notes
22 • mysql_rollback() will not work as expected if autocommit mode was set
23 or the storage engine does not support transactions.
24
25 See also
26 • mysql_commit(3)
27
28 • mysql_autocommit(3)
29
30
31
32Version 3.3.1 mysql_rollback(3)