Documentation Home
MySQL 5.7 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 35.6Mb
PDF (A4) - 35.6Mb
PDF (RPM) - 34.6Mb
EPUB - 8.7Mb
HTML Download (TGZ) - 8.4Mb
HTML Download (Zip) - 8.5Mb
HTML Download (RPM) - 7.3Mb
Eclipse Doc Plugin (TGZ) - 9.3Mb
Eclipse Doc Plugin (Zip) - 11.4Mb
Man Pages (TGZ) - 202.2Kb
Man Pages (Zip) - 307.6Kb
Info (Gzip) - 3.3Mb
Info (Zip) - 3.3Mb
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.



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.