diff options
author | Justin Clark-Casey (justincc) | 2010-08-04 20:23:18 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-08-04 20:23:18 +0100 |
commit | 7f3f1bfe885a373d4a74fc13d49236113a69f727 (patch) | |
tree | cc4151e53efc45cf2f59fd029eb5fa93f8267846 /OpenSim/Data/MSSQL/MSSQLLegacyRegionData.cs | |
parent | Implement MediaUrl persistence for MySQL and MsSQL (diff) | |
download | opensim-SC_OLD-7f3f1bfe885a373d4a74fc13d49236113a69f727.zip opensim-SC_OLD-7f3f1bfe885a373d4a74fc13d49236113a69f727.tar.gz opensim-SC_OLD-7f3f1bfe885a373d4a74fc13d49236113a69f727.tar.bz2 opensim-SC_OLD-7f3f1bfe885a373d4a74fc13d49236113a69f727.tar.xz |
fix mysql/mssql prim serialization problem
Diffstat (limited to 'OpenSim/Data/MSSQL/MSSQLLegacyRegionData.cs')
-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 | } |