diff options
author | Sean Dague | 2007-08-09 20:31:10 +0000 |
---|---|---|
committer | Sean Dague | 2007-08-09 20:31:10 +0000 |
commit | 484121f3f408767dd62509be8c366381d079418a (patch) | |
tree | 79f22cf8f25a33e17b0ae3497b474a862f063295 /OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite | |
parent | build update clauses correctly (diff) | |
download | opensim-SC_OLD-484121f3f408767dd62509be8c366381d079418a.zip opensim-SC_OLD-484121f3f408767dd62509be8c366381d079418a.tar.gz opensim-SC_OLD-484121f3f408767dd62509be8c366381d079418a.tar.bz2 opensim-SC_OLD-484121f3f408767dd62509be8c366381d079418a.tar.xz |
added GroupPosition
Diffstat (limited to 'OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite')
-rw-r--r-- | OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs b/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs index c2ef9a5..83b5ed8 100644 --- a/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs +++ b/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs | |||
@@ -97,6 +97,9 @@ namespace OpenSim.DataStore.MonoSqliteStorage | |||
97 | data.Add("PositionX", DbType.Double); | 97 | data.Add("PositionX", DbType.Double); |
98 | data.Add("PositionY", DbType.Double); | 98 | data.Add("PositionY", DbType.Double); |
99 | data.Add("PositionZ", DbType.Double); | 99 | data.Add("PositionZ", DbType.Double); |
100 | data.Add("GroupPositionX", DbType.Double); | ||
101 | data.Add("GroupPositionY", DbType.Double); | ||
102 | data.Add("GroupPositionZ", DbType.Double); | ||
100 | data.Add("VelocityX", DbType.Double); | 103 | data.Add("VelocityX", DbType.Double); |
101 | data.Add("VelocityY", DbType.Double); | 104 | data.Add("VelocityY", DbType.Double); |
102 | data.Add("VelocityZ", DbType.Double); | 105 | data.Add("VelocityZ", DbType.Double); |
@@ -186,7 +189,7 @@ namespace OpenSim.DataStore.MonoSqliteStorage | |||
186 | string sql = "update " + table + " set "; | 189 | string sql = "update " + table + " set "; |
187 | string subsql = ""; | 190 | string subsql = ""; |
188 | foreach (string key in defs.Keys) { | 191 | foreach (string key in defs.Keys) { |
189 | if (subsql.Length > 0) { // | 192 | if (subsql.Length > 0) { // a map function would rock so much here |
190 | subsql += ", "; | 193 | subsql += ", "; |
191 | } | 194 | } |
192 | subsql += key + "= :" + key; | 195 | subsql += key + "= :" + key; |
@@ -235,6 +238,12 @@ namespace OpenSim.DataStore.MonoSqliteStorage | |||
235 | da.DeleteCommand = delete; | 238 | da.DeleteCommand = delete; |
236 | } | 239 | } |
237 | 240 | ||
241 | private SceneObjectPart buildPrim(DataRow row) | ||
242 | { | ||
243 | SceneObjectPart prim = new SceneObjectPart(); | ||
244 | return prim; | ||
245 | } | ||
246 | |||
238 | private void fillPrimRow(DataRow row, SceneObjectPart prim) | 247 | private void fillPrimRow(DataRow row, SceneObjectPart prim) |
239 | { | 248 | { |
240 | row["UUID"] = prim.UUID; | 249 | row["UUID"] = prim.UUID; |
@@ -260,6 +269,9 @@ namespace OpenSim.DataStore.MonoSqliteStorage | |||
260 | row["PositionX"] = prim.OffsetPosition.X; | 269 | row["PositionX"] = prim.OffsetPosition.X; |
261 | row["PositionY"] = prim.OffsetPosition.Y; | 270 | row["PositionY"] = prim.OffsetPosition.Y; |
262 | row["PositionZ"] = prim.OffsetPosition.Z; | 271 | row["PositionZ"] = prim.OffsetPosition.Z; |
272 | row["GroupPositionX"] = prim.GroupPosition.X; | ||
273 | row["GroupPositionY"] = prim.GroupPosition.Y; | ||
274 | row["GroupPositionZ"] = prim.GroupPosition.Z; | ||
263 | row["VelocityX"] = prim.Velocity.X; | 275 | row["VelocityX"] = prim.Velocity.X; |
264 | row["VelocityY"] = prim.Velocity.Y; | 276 | row["VelocityY"] = prim.Velocity.Y; |
265 | row["VelocityZ"] = prim.Velocity.Z; | 277 | row["VelocityZ"] = prim.Velocity.Z; |