diff options
author | Justin Clark-Casey (justincc) | 2010-07-26 23:26:22 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-07-26 23:34:23 +0100 |
commit | 109ddd1bd5fcabf3155e579fe6eb15e07869b9b8 (patch) | |
tree | 0e0dff6724b3c6d7ae8ac21b9a11dee4bb8ab24e /OpenSim/Data/MSSQL/MSSQLLegacyRegionData.cs | |
parent | add mysql support for media on a prim (diff) | |
download | opensim-SC-109ddd1bd5fcabf3155e579fe6eb15e07869b9b8.zip opensim-SC-109ddd1bd5fcabf3155e579fe6eb15e07869b9b8.tar.gz opensim-SC-109ddd1bd5fcabf3155e579fe6eb15e07869b9b8.tar.bz2 opensim-SC-109ddd1bd5fcabf3155e579fe6eb15e07869b9b8.tar.xz |
add mssql support for media on a prim
compiles but not tested. please test and correct if necessary!
Diffstat (limited to 'OpenSim/Data/MSSQL/MSSQLLegacyRegionData.cs')
-rw-r--r-- | OpenSim/Data/MSSQL/MSSQLLegacyRegionData.cs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/OpenSim/Data/MSSQL/MSSQLLegacyRegionData.cs b/OpenSim/Data/MSSQL/MSSQLLegacyRegionData.cs index d6cb91f..e61b4d9 100644 --- a/OpenSim/Data/MSSQL/MSSQLLegacyRegionData.cs +++ b/OpenSim/Data/MSSQL/MSSQLLegacyRegionData.cs | |||
@@ -385,7 +385,7 @@ IF EXISTS (SELECT UUID FROM primshapes WHERE UUID = @UUID) | |||
385 | PathSkew = @PathSkew, PathCurve = @PathCurve, PathRadiusOffset = @PathRadiusOffset, PathRevolutions = @PathRevolutions, | 385 | PathSkew = @PathSkew, PathCurve = @PathCurve, PathRadiusOffset = @PathRadiusOffset, PathRevolutions = @PathRevolutions, |
386 | PathTaperX = @PathTaperX, PathTaperY = @PathTaperY, PathTwist = @PathTwist, PathTwistBegin = @PathTwistBegin, | 386 | PathTaperX = @PathTaperX, PathTaperY = @PathTaperY, PathTwist = @PathTwist, PathTwistBegin = @PathTwistBegin, |
387 | ProfileBegin = @ProfileBegin, ProfileEnd = @ProfileEnd, ProfileCurve = @ProfileCurve, ProfileHollow = @ProfileHollow, | 387 | ProfileBegin = @ProfileBegin, ProfileEnd = @ProfileEnd, ProfileCurve = @ProfileCurve, ProfileHollow = @ProfileHollow, |
388 | Texture = @Texture, ExtraParams = @ExtraParams, State = @State | 388 | Texture = @Texture, ExtraParams = @ExtraParams, State = @State, Media = @Media |
389 | WHERE UUID = @UUID | 389 | WHERE UUID = @UUID |
390 | END | 390 | END |
391 | ELSE | 391 | ELSE |
@@ -394,11 +394,11 @@ ELSE | |||
394 | primshapes ( | 394 | primshapes ( |
395 | UUID, Shape, ScaleX, ScaleY, ScaleZ, PCode, PathBegin, PathEnd, PathScaleX, PathScaleY, PathShearX, PathShearY, | 395 | UUID, Shape, ScaleX, ScaleY, ScaleZ, PCode, PathBegin, PathEnd, PathScaleX, PathScaleY, PathShearX, PathShearY, |
396 | PathSkew, PathCurve, PathRadiusOffset, PathRevolutions, PathTaperX, PathTaperY, PathTwist, PathTwistBegin, ProfileBegin, | 396 | PathSkew, PathCurve, PathRadiusOffset, PathRevolutions, PathTaperX, PathTaperY, PathTwist, PathTwistBegin, ProfileBegin, |
397 | ProfileEnd, ProfileCurve, ProfileHollow, Texture, ExtraParams, State | 397 | ProfileEnd, ProfileCurve, ProfileHollow, Texture, ExtraParams, State, Media |
398 | ) VALUES ( | 398 | ) VALUES ( |
399 | @UUID, @Shape, @ScaleX, @ScaleY, @ScaleZ, @PCode, @PathBegin, @PathEnd, @PathScaleX, @PathScaleY, @PathShearX, @PathShearY, | 399 | @UUID, @Shape, @ScaleX, @ScaleY, @ScaleZ, @PCode, @PathBegin, @PathEnd, @PathScaleX, @PathScaleY, @PathShearX, @PathShearY, |
400 | @PathSkew, @PathCurve, @PathRadiusOffset, @PathRevolutions, @PathTaperX, @PathTaperY, @PathTwist, @PathTwistBegin, @ProfileBegin, | 400 | @PathSkew, @PathCurve, @PathRadiusOffset, @PathRevolutions, @PathTaperX, @PathTaperY, @PathTwist, @PathTwistBegin, @ProfileBegin, |
401 | @ProfileEnd, @ProfileCurve, @ProfileHollow, @Texture, @ExtraParams, @State | 401 | @ProfileEnd, @ProfileCurve, @ProfileHollow, @Texture, @ExtraParams, @State, @Media |
402 | ) | 402 | ) |
403 | END"; | 403 | END"; |
404 | 404 | ||
@@ -1180,6 +1180,9 @@ VALUES | |||
1180 | { | 1180 | { |
1181 | } | 1181 | } |
1182 | 1182 | ||
1183 | if (!(shapeRow["Media"] is System.DBNull)) | ||
1184 | baseShape.MediaRaw = (string)shapeRow["Media"]; | ||
1185 | |||
1183 | return baseShape; | 1186 | return baseShape; |
1184 | } | 1187 | } |
1185 | 1188 | ||
@@ -1557,6 +1560,7 @@ VALUES | |||
1557 | parameters.Add(_Database.CreateParameter("Texture", s.TextureEntry)); | 1560 | parameters.Add(_Database.CreateParameter("Texture", s.TextureEntry)); |
1558 | parameters.Add(_Database.CreateParameter("ExtraParams", s.ExtraParams)); | 1561 | parameters.Add(_Database.CreateParameter("ExtraParams", s.ExtraParams)); |
1559 | parameters.Add(_Database.CreateParameter("State", s.State)); | 1562 | parameters.Add(_Database.CreateParameter("State", s.State)); |
1563 | parameters.Add(_Database.CreateParameter("Media", s.MediaRaw)); | ||
1560 | 1564 | ||
1561 | return parameters.ToArray(); | 1565 | return parameters.ToArray(); |
1562 | } | 1566 | } |