diff --git a/FunGame.Server/Services/DataUtility/MySQLHelper.cs b/FunGame.Server/Services/DataUtility/MySQLHelper.cs index 0a9e4f0..61f7634 100644 --- a/FunGame.Server/Services/DataUtility/MySQLHelper.cs +++ b/FunGame.Server/Services/DataUtility/MySQLHelper.cs @@ -287,7 +287,6 @@ namespace Milimoe.FunGame.Server.Services.DataUtility { SelectCommand = command }; - _dataSet = new(); _affectedRows = adapter.Fill(_dataSet); if (localTransaction) Commit(); @@ -352,7 +351,6 @@ namespace Milimoe.FunGame.Server.Services.DataUtility { SelectCommand = command }; - _dataSet = new(); _affectedRows = await adapter.FillAsync(_dataSet); if (localTransaction) Commit(); @@ -482,7 +480,7 @@ namespace Milimoe.FunGame.Server.Services.DataUtility _result = SQLResult.NotFound; _affectedRows = 0; _lastInsertId = 0; - DataSet.Clear(); + _dataSet = new(); } } } diff --git a/FunGame.Server/Services/DataUtility/SQLiteHelper.cs b/FunGame.Server/Services/DataUtility/SQLiteHelper.cs index 55b9da8..226fd27 100644 --- a/FunGame.Server/Services/DataUtility/SQLiteHelper.cs +++ b/FunGame.Server/Services/DataUtility/SQLiteHelper.cs @@ -285,7 +285,6 @@ namespace Milimoe.FunGame.Server.Services.DataUtility ReSet(); using SqliteDataReader reader = command.ExecuteReader(); - _dataSet = new(); do { DataTable table = new(); @@ -351,7 +350,6 @@ namespace Milimoe.FunGame.Server.Services.DataUtility ReSet(); using SqliteDataReader reader = await command.ExecuteReaderAsync(); - _dataSet = new(); do { DataTable table = new(); @@ -486,7 +484,7 @@ namespace Milimoe.FunGame.Server.Services.DataUtility _result = SQLResult.NotFound; _affectedRows = 0; _lastInsertId = 0; - DataSet.Clear(); + _dataSet = new(); } } }