Fix bug
This commit is contained in:
parent
9ae86e4127
commit
cceb695515
|
@ -16,7 +16,7 @@ Transaction::Transaction(MySQLConn& MySQLConnection) : conn(MySQLConnection)
|
|||
|
||||
Transaction::~Transaction()
|
||||
{
|
||||
if(!_operated)
|
||||
if(_isReady&&(!_operated))
|
||||
{
|
||||
rollback();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user