mantis 8645: change sqlite to just flag row delete, for commit to work

master
UbitUmarov 2020-01-18 21:09:41 +00:00
parent 550f64cb2d
commit 8db2ddb07f
1 changed files with 3 additions and 3 deletions

View File

@ -1057,10 +1057,10 @@ namespace OpenSim.Data.SQLite
if (rowToCheck["LandUUID"].ToString() == parcel.LandData.GlobalID.ToString()) if (rowToCheck["LandUUID"].ToString() == parcel.LandData.GlobalID.ToString())
rowsToDelete.Add(rowToCheck); rowsToDelete.Add(rowToCheck);
} }
for (int iter = 0; iter < rowsToDelete.Count; iter++) for (int iter = 0; iter < rowsToDelete.Count; ++iter)
landaccesslist.Rows.Remove(rowsToDelete[iter]); rowsToDelete[iter].Delete();
rowsToDelete.Clear();
foreach (LandAccessEntry entry in parcel.LandData.ParcelAccessList) foreach (LandAccessEntry entry in parcel.LandData.ParcelAccessList)
{ {
DataRow newAccessRow = landaccesslist.NewRow(); DataRow newAccessRow = landaccesslist.NewRow();