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:
Sean Dague
2008-10-01 15:41:36 +00:00
parent fecbb2febd
commit d009927194
3 changed files with 47 additions and 8 deletions

View File

@@ -348,7 +348,7 @@ namespace OpenSim.Data.SQLite
DataTable prims = ds.Tables["prims"];
DataTable shapes = ds.Tables["primshapes"];
string selectExp = "SceneGroupID = '" + Util.ToRawUuidString(obj) + "'";
string selectExp = "SceneGroupID = '" + Util.ToRawUuidString(obj) + "' and RegionUUID = '" + Util.ToRawUuidString(regionUUID) + "'";
lock (ds)
{
DataRow[] primRows = prims.Select(selectExp);