mysql_commit
mysql_commit commits the current transaction on a MariaDB Connector/C connection, returning zero on success without affecting autocommit mode.
Syntax
my_bool mysql_commit(MYSQL * mysql);Parameter
mysql- amysqlhandle, which was previously allocated by mysql_init() or mysql_real_connect().
Description
Commits the current transaction for the specified database connection.
Return Value
Returns zero on success, nonzero if an error occurred.
See Also
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

