mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 12:31:31 +00:00
[Database] Set multi statements off when returning early (#3462)
This commit is contained in:
parent
dfadc237e5
commit
7873ad3771
@ -365,6 +365,8 @@ MySQLRequestResult DBcore::QueryDatabaseMulti(const std::string &query)
|
|||||||
mysql_free_result(res);
|
mysql_free_result(res);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SetMultiStatementsOff();
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -418,6 +420,8 @@ MySQLRequestResult DBcore::QueryDatabaseMulti(const std::string &query)
|
|||||||
r.SetErrorMessage(error_message);
|
r.SetErrorMessage(error_message);
|
||||||
r.SetErrorNumber(mysql_errno(mysql));
|
r.SetErrorNumber(mysql_errno(mysql));
|
||||||
|
|
||||||
|
SetMultiStatementsOff();
|
||||||
|
|
||||||
// we handle errors elsewhere
|
// we handle errors elsewhere
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user