Commit 59a6657e authored by Thomas Braun's avatar Thomas Braun
Browse files

DataBaseUtils.cpp: Add comment to ~AutoLock

parent dfab4d81
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -843,6 +843,8 @@ AutoLock::AutoLock(DataBase *db) :

AutoLock::~AutoLock()
{
    // see https://mariadb.com/docs/server/server-management/variables-and-modes/server-system-variables#autocommit
    // why this works
    const std::string sql_query{"SET autocommit=1;"}; // or COMMIT
    the_db->simple_query(sql_query, "~AutoLock", m_dch);
}