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; }