mirror of
https://github.com/opensim/opensim.git
synced 2026-05-14 10:45:40 +08:00
Store NULL in the 'DynAttrs' column if the prim doesn't have any dynamic attributes
This commit is contained in:
committed by
Justin Clark-Casey (justincc)
parent
fdec05a15e
commit
86802bcf93
@@ -1645,7 +1645,11 @@ namespace OpenSim.Data.MySQL
|
||||
|
||||
cmd.Parameters.AddWithValue("LinkNumber", prim.LinkNum);
|
||||
cmd.Parameters.AddWithValue("MediaURL", prim.MediaUrl);
|
||||
cmd.Parameters.AddWithValue("DynAttrs", prim.DynAttrs.ToXml());
|
||||
|
||||
if (prim.DynAttrs.Count > 0)
|
||||
cmd.Parameters.AddWithValue("DynAttrs", prim.DynAttrs.ToXml());
|
||||
else
|
||||
cmd.Parameters.AddWithValue("DynAttrs", null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user