Reconsider requiring ATTR_AUTOCOMMIT to be disabled (on MySQL)
rubenvandeven opened this issue · 1 comments
rubenvandeven commented
Hi,
I just ran into the problem that the TransactionalMutex requires a PDO connection with ATTR_AUTOCOMMIT disabled.
As I see the code and consider the MySQL documentation on AUTOCOMMIT, it seems autocommit is already disabled when $this->pdo->beginTransaction();
is ran (this state lasts until the commit()
).
Could you confirm whether my thought is correct? If so, would it be possible to skip the AUTOCOMMIT check -- at least for a MySQL PDO connection?
Thank you!