This commit is contained in:
Kirigaya Kazuto 2017-11-26 16:58:30 +08:00
parent 9ae86e4127
commit cceb695515

View File

@ -16,7 +16,7 @@ Transaction::Transaction(MySQLConn& MySQLConnection) : conn(MySQLConnection)
Transaction::~Transaction() Transaction::~Transaction()
{ {
if(!_operated) if(_isReady&&(!_operated))
{ {
rollback(); rollback();
} }