aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MSSQL/MSSQLSimulationData.cs
diff options
context:
space:
mode:
authorOren Hurvitz2013-01-22 08:55:15 +0200
committerJustin Clark-Casey (justincc)2013-01-25 04:03:24 +0000
commit86802bcf937e19ea99c2f9b7bc757b4e9daf3d16 (patch)
tree6692d40a62a3fc12b7296744e8d35bc51f217590 /OpenSim/Data/MSSQL/MSSQLSimulationData.cs
parentStopped storing dynamic attributes in the PrimShape (diff)
downloadopensim-SC_OLD-86802bcf937e19ea99c2f9b7bc757b4e9daf3d16.zip
opensim-SC_OLD-86802bcf937e19ea99c2f9b7bc757b4e9daf3d16.tar.gz
opensim-SC_OLD-86802bcf937e19ea99c2f9b7bc757b4e9daf3d16.tar.bz2
opensim-SC_OLD-86802bcf937e19ea99c2f9b7bc757b4e9daf3d16.tar.xz
Store NULL in the 'DynAttrs' column if the prim doesn't have any dynamic attributes
Diffstat (limited to 'OpenSim/Data/MSSQL/MSSQLSimulationData.cs')
-rw-r--r--OpenSim/Data/MSSQL/MSSQLSimulationData.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Data/MSSQL/MSSQLSimulationData.cs b/OpenSim/Data/MSSQL/MSSQLSimulationData.cs
index 24252ad..276a190 100644
--- a/OpenSim/Data/MSSQL/MSSQLSimulationData.cs
+++ b/OpenSim/Data/MSSQL/MSSQLSimulationData.cs
@@ -2090,7 +2090,11 @@ VALUES
2090 parameters.Add(_Database.CreateParameter("PassTouches", 0)); 2090 parameters.Add(_Database.CreateParameter("PassTouches", 0));
2091 parameters.Add(_Database.CreateParameter("LinkNumber", prim.LinkNum)); 2091 parameters.Add(_Database.CreateParameter("LinkNumber", prim.LinkNum));
2092 parameters.Add(_Database.CreateParameter("MediaURL", prim.MediaUrl)); 2092 parameters.Add(_Database.CreateParameter("MediaURL", prim.MediaUrl));
2093 parameters.Add(_Database.CreateParameter("DynAttrs", prim.DynAttrs.ToXml())); 2093
2094 if (prim.DynAttrs.Count > 0)
2095 parameters.Add(_Database.CreateParameter("DynAttrs", prim.DynAttrs.ToXml()));
2096 else
2097 parameters.Add(_Database.CreateParameter("DynAttrs", null));
2094 2098
2095 return parameters.ToArray(); 2099 return parameters.ToArray();
2096 } 2100 }