[Database] Set multi statements off when returning early (#3462)

This commit is contained in:
Chris Miles authored and GitHub committed 2023-07-01 19:49:09 -04:00
1 parent dfadc237e5
commit 7873ad3771
1 file changed
+4
+4
View File
@@ -365,6 +365,8 @@ MySQLRequestResult DBcore::QueryDatabaseMulti(const std::string &query)
mysql_free_result(res);
}
SetMultiStatementsOff();
return r;
}
}
@@ -418,6 +420,8 @@ MySQLRequestResult DBcore::QueryDatabaseMulti(const std::string &query)
r.SetErrorMessage(error_message);
r.SetErrorNumber(mysql_errno(mysql));
SetMultiStatementsOff();
// we handle errors elsewhere
return r;
}