MySQL 5.6 C API Developer Guide
my_bool mysql_autocommit(MYSQL *mysql, my_bool mode)
Sets autocommit mode on if mode is 1, off if mode is 0.
mode
Zero for success. Nonzero if an error occurred.
None.