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

php - cannot display multiple markers in google maps v3 from traceroute result -

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

javascript - firefox memory leak -