MySQL 5.6 C API Developer Guide

5.4.2 mysql_autocommit()

my_bool
mysql_autocommit(MYSQL *mysql,
                 my_bool mode)

Description

Sets autocommit mode on if mode is 1, off if mode is 0.

Return Values

Zero for success. Nonzero if an error occurred.

Errors

None.