Fixes error with large querys. (todo: find a better way to do this)

This commit is contained in:
hondacrx
2017-07-05 12:06:17 -04:00
parent 9412ef6be1
commit df5169784f
+2
View File
@@ -90,6 +90,8 @@ namespace Framework.Database
_update.Add(() =>
{
//Hack used to allow big querys
database.Apply("SET GLOBAL max_allowed_packet=1073741824;");
if (!database.GetUpdater().Update())
{
Log.outError(LogFilter.ServerLoading, "Could not update the {0} database, see log for details.", name);