From d0099271948e6c908a11da0158ca3471d2afb568 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 1 Oct 2008 15:41:36 +0000 Subject: 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. --- OpenSim/Data/SQLite/SQLiteRegionData.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Data/SQLite') diff --git a/OpenSim/Data/SQLite/SQLiteRegionData.cs b/OpenSim/Data/SQLite/SQLiteRegionData.cs index 74715c0..bc64ba0 100644 --- a/OpenSim/Data/SQLite/SQLiteRegionData.cs +++ b/OpenSim/Data/SQLite/SQLiteRegionData.cs @@ -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); -- cgit v1.1