Documentation Home
MySQL 5.5 Reference Manual
Related Documentation Download this Manual Excerpts from this Manual mysql_autocommit()

my_bool mysql_autocommit(MYSQL *mysql, my_bool mode)


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

Return Values

Zero for success. Nonzero if an error occurred.



Download this Manual
User Comments
  Posted by David Randolph on May 20, 2007
Please note that mysql_autocommit() must be called AFTER mysql_connect(). When called before mysql_connect, mysql_autocommit() may cause a segmentation violation. If you are having a problem with segmentation faults, check your order of operations. Cheers.
Sign Up Login You must be logged in to post a comment.