mirror of
https://github.com/opensim/opensim.git
synced 2026-05-14 10:45:40 +08:00
add delete prim tests. Found and fixed bugs where region
is not respected by sqlite or mysql drivers so that deleting and object in a region actually deletes that object from any region.
This commit is contained in:
@@ -333,7 +333,7 @@ namespace OpenSim.Data.MySQL
|
||||
DataTable prims = m_primTable;
|
||||
DataTable shapes = m_shapeTable;
|
||||
|
||||
string selectExp = "SceneGroupID = '" + Util.ToRawUuidString(obj) + "'";
|
||||
string selectExp = "SceneGroupID = '" + Util.ToRawUuidString(obj) + "' and RegionUUID = '" + Util.ToRawUuidString(regionUUID) + "'";
|
||||
lock (m_dataSet)
|
||||
{
|
||||
DataRow[] primRows = prims.Select(selectExp);
|
||||
@@ -347,7 +347,7 @@ namespace OpenSim.Data.MySQL
|
||||
shapeRow.Delete();
|
||||
}
|
||||
|
||||
RemoveItems(uuid);
|
||||
RemoveItems(uuid);
|
||||
|
||||
// Remove prim row
|
||||
row.Delete();
|
||||
|
||||
Reference in New Issue
Block a user