From 66dad4ab03893ad128c28f54803492314398da13 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Tue, 9 Sep 2008 18:44:54 +0000 Subject: hopefully fix embedded inventory for sqlite --- OpenSim/Data/SQLite/SQLiteRegionData.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenSim/Data/SQLite/SQLiteRegionData.cs b/OpenSim/Data/SQLite/SQLiteRegionData.cs index cfb2023..b6d1abe 100644 --- a/OpenSim/Data/SQLite/SQLiteRegionData.cs +++ b/OpenSim/Data/SQLite/SQLiteRegionData.cs @@ -354,8 +354,8 @@ namespace OpenSim.Data.SQLite createdObjects[new UUID(objID)].AddPart(prim); } - LoadItems(prim); - } + LoadItems(prim); + } catch (Exception e) { m_log.Error("[REGION DB]: Failed create prim object, exception and data follows"); @@ -380,7 +380,7 @@ namespace OpenSim.Data.SQLite DataTable dbItems = ds.Tables["primitems"]; - String sql = String.Format("primID = '{0}'", prim.ToString()); + String sql = String.Format("primID = '{0}'", prim.UUID.ToString()); DataRow[] dbItemRows = dbItems.Select(sql); IList inventory = new List(); -- cgit v1.1