diff options
Diffstat (limited to 'OpenSim/Data/MSSQL')
-rw-r--r-- | OpenSim/Data/MSSQL/MSSQLLegacyRegionData.cs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/OpenSim/Data/MSSQL/MSSQLLegacyRegionData.cs b/OpenSim/Data/MSSQL/MSSQLLegacyRegionData.cs index 05b14bf..7c176c7 100644 --- a/OpenSim/Data/MSSQL/MSSQLLegacyRegionData.cs +++ b/OpenSim/Data/MSSQL/MSSQLLegacyRegionData.cs | |||
@@ -1516,9 +1516,7 @@ VALUES | |||
1516 | else | 1516 | else |
1517 | parameters.Add(_Database.CreateParameter("PassTouches", 0)); | 1517 | parameters.Add(_Database.CreateParameter("PassTouches", 0)); |
1518 | parameters.Add(_Database.CreateParameter("LinkNumber", prim.LinkNum)); | 1518 | parameters.Add(_Database.CreateParameter("LinkNumber", prim.LinkNum)); |
1519 | 1519 | parameters.Add(_Database.CreateParameter("MediaURL", prim.MediaUrl)); | |
1520 | if (prim.MediaUrl != null) | ||
1521 | parameters.Add(_Database.CreateParameter("MediaURL", prim.MediaUrl)); | ||
1522 | 1520 | ||
1523 | return parameters.ToArray(); | 1521 | return parameters.ToArray(); |
1524 | } | 1522 | } |
@@ -1566,9 +1564,7 @@ VALUES | |||
1566 | parameters.Add(_Database.CreateParameter("Texture", s.TextureEntry)); | 1564 | parameters.Add(_Database.CreateParameter("Texture", s.TextureEntry)); |
1567 | parameters.Add(_Database.CreateParameter("ExtraParams", s.ExtraParams)); | 1565 | parameters.Add(_Database.CreateParameter("ExtraParams", s.ExtraParams)); |
1568 | parameters.Add(_Database.CreateParameter("State", s.State)); | 1566 | parameters.Add(_Database.CreateParameter("State", s.State)); |
1569 | 1567 | parameters.Add(_Database.CreateParameter("Media", null == s.Media ? null : s.Media.ToXml())); | |
1570 | if (s.Media != null) | ||
1571 | parameters.Add(_Database.CreateParameter("Media", s.Media.ToXml())); | ||
1572 | 1568 | ||
1573 | return parameters.ToArray(); | 1569 | return parameters.ToArray(); |
1574 | } | 1570 | } |