I am viewing code by another developer. It has a commit that explicitly adds set autocommit=0 at the start of the MySQL transaction. This causes problems for other non-transactional requests in the session.
Does set autocommit=0 anything to the transaction for this transaction? I assume this is not the case, as transactions implicitly do this anyway.
[The only rationale I can come up with for this commit might have been the one used by MySam (compared to the current InnoDB), and was it a way to simulate transactions in the first?]
source share