Loading DataBaseUtils.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -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); } Loading Loading
DataBaseUtils.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -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); } Loading