Jump to content

Autocommit


neoform

Recommended Posts

if autocommit is on by default and I want to use transactions sometimes, do i need to turn off autocommit before starting a transaction (then turn it back on after the commit/rollback), or does it assume it needs to see a commit/rollback before resuming autocommit mode?

 

eg. is this required?

 

set autocommit=0;
start transaction;
#stuff
commit;
set autocommit=1;

Link to comment
https://forums.phpfreaks.com/topic/74762-autocommit/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.