From 1681e3ac154aaa0747f593799bee0f540ad0747e Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Thu, 9 Aug 2007 19:06:48 +0000 Subject: [PATCH] pull out some uneeded attributes, and setup keys on primshapes dataset --- .../OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs b/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs index f7a579f00b..195ecbb58e 100644 --- a/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs +++ b/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs @@ -22,9 +22,6 @@ namespace OpenSim.DataStore.MonoSqliteStorage private const string primSelect = "select * from prims"; private const string shapeSelect = "select * from primshapes"; - private Dictionary primDataDefs; - private Dictionary shapeDataDefs; - private DataSet ds; private SqliteDataAdapter primDa; private SqliteDataAdapter shapeDa; @@ -57,6 +54,9 @@ namespace OpenSim.DataStore.MonoSqliteStorage // shapeDa.FillSchema(ds, SchemaType.Source, "ShapeSchema"); shapeDa.Fill(ds, "primshapes"); + DataTable shapes = ds.Tables["primshapes"]; + shapes.PrimaryKey = new DataColumn[] { shapes.Columns["UUID"] }; + setupShapeCommands(shapeDa, conn); return; }