1mysql_commit(3)               MariaDB Connector/C              mysql_commit(3)
2
3
4
5   Name
6       mysql_commit - Commits the current transaction
7
8   Synopsis
9              #include <mysql.h>
10
11              my_bool mysql_commit(MYSQL * mysql);
12
13   Description
14       Commits  the current transaction for the specified database connection.
15       Returns zero on success, nonzero if an error occurred.
16
17   Parameters
18       • mysql is a connection identifier, which was previously  allocated  by
19         mysql_init(3) and connected by mysql_real_connect(3).
20
21   Notes
22       Executing mysql_commit() will not affected the behaviour of autocommit.
23       This means, any update or insert  statements  following  mysql_commit()
24       will be rolled back when the connection gets closed.
25
26       == See also * mysql_autocommit(3) * mysql_rollback(3)
27
28
29
30Version 3.3.1                                                  mysql_commit(3)
Impressum