You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@dimitriBouteille one more thing, deleteOrFail() open transaction internally and at the moment transaction is opened but it is never closed.
public function deleteOrFail()
{
if (! $this->exists) {
return false;
}
return $this->getConnection()->transaction(function () {
return $this->delete();
});
}
In the query log, I see only: "[06-Mar-2024 12:55:51 UTC] START TRANSACTION;" and that's it.
It looks like WordPress can be launched with different type of tables: InnoDB, MyISAM, etc.
InnoDB tables are transactional tables.
Non-transactional tables would be e.g MyISAM.
Please check that code is working good with transactional table and non-transactional ones.
If it's running with non-transactional table, it shouldn't try to create the transaction.
I think need to add a couple of unit tests.
The text was updated successfully, but these errors were encountered:
#17 (comment)
@dimitriBouteille one more thing, deleteOrFail() open transaction internally and at the moment transaction is opened but it is never closed.
In the query log, I see only: "[06-Mar-2024 12:55:51 UTC] START TRANSACTION;" and that's it.
It looks like WordPress can be launched with different type of tables: InnoDB, MyISAM, etc.
InnoDB tables are transactional tables.
Non-transactional tables would be e.g MyISAM.
Please check that code is working good with transactional table and non-transactional ones.
If it's running with non-transactional table, it shouldn't try to create the transaction.
I think need to add a couple of unit tests.
The text was updated successfully, but these errors were encountered: