mysql - PHP and MySQLi check if in transaction -


is there way if i'm inside of transaction? example: if mysqli::autocommit 'on' or 'off'?

need because project using memcache, should updated once transaction success. wanna assert user not invoking update cache method in process of transaction.

thanks in advance!

there isn't foolproof way find out if transaction has been started because, if use mysqli::autocommit start one, issue sql start transaction. see answers here:

how detect transaction has been started?


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -