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:
Comments
Post a Comment