aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL
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/MySQL
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/MySQL')
-rw-r--r--OpenSim/Data/MySQL/MySQLSimulationData.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Data/MySQL/MySQLSimulationData.cs b/OpenSim/Data/MySQL/MySQLSimulationData.cs
index 1a6a0fb..c95311e 100644
--- a/OpenSim/Data/MySQL/MySQLSimulationData.cs
+++ b/OpenSim/Data/MySQL/MySQLSimulationData.cs
@@ -1645,7 +1645,11 @@ namespace OpenSim.Data.MySQL
1645 1645
1646 cmd.Parameters.AddWithValue("LinkNumber", prim.LinkNum); 1646 cmd.Parameters.AddWithValue("LinkNumber", prim.LinkNum);
1647 cmd.Parameters.AddWithValue("MediaURL", prim.MediaUrl); 1647 cmd.Parameters.AddWithValue("MediaURL", prim.MediaUrl);
1648 cmd.Parameters.AddWithValue("DynAttrs", prim.DynAttrs.ToXml()); 1648
1649 if (prim.DynAttrs.Count > 0)
1650 cmd.Parameters.AddWithValue("DynAttrs", prim.DynAttrs.ToXml());
1651 else
1652 cmd.Parameters.AddWithValue("DynAttrs", null);
1649 } 1653 }
1650 1654
1651 /// <summary> 1655 /// <summary>