Store NULL in the 'DynAttrs' column if the prim doesn't have any dynamic attributes

This commit is contained in:
Oren Hurvitz
2013-01-22 08:55:15 +02:00
committed by Justin Clark-Casey (justincc)
parent fdec05a15e
commit 86802bcf93
3 changed files with 15 additions and 3 deletions

View File

@@ -2145,7 +2145,11 @@ namespace OpenSim.Data.SQLite
row["VolumeDetect"] = 0;
row["MediaURL"] = prim.MediaUrl;
row["DynAttrs"] = prim.DynAttrs.ToXml();
if (prim.DynAttrs.Count > 0)
row["DynAttrs"] = prim.DynAttrs.ToXml();
else
row["DynAttrs"] = null;
}
/// <summary>