From e64d9b66a9cb58d66c76cca2984801e2d056504c Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Tue, 23 Dec 2008 20:41:52 +0000 Subject: [PATCH] * Fix http://opensimulator.org/mantis/view.php?id=2889 * Primshapes uuid wasn't being converted to raw (non-dashed) format before being used in primshapes delete command --- OpenSim/Data/MySQL/MySQLRegionData.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenSim/Data/MySQL/MySQLRegionData.cs b/OpenSim/Data/MySQL/MySQLRegionData.cs index b8da7c3ce2..a06dbb36c0 100644 --- a/OpenSim/Data/MySQL/MySQLRegionData.cs +++ b/OpenSim/Data/MySQL/MySQLRegionData.cs @@ -365,7 +365,7 @@ namespace OpenSim.Data.MySQL for (int i = 0; i < uuids.Count; i++) { - cmd.Parameters.AddWithValue("UUID" + i, uuids[i].ToString()); + cmd.Parameters.AddWithValue("UUID" + i, Util.ToRawUuidString(uuids[i])); } ExecuteNonQuery(cmd); @@ -1437,7 +1437,7 @@ namespace OpenSim.Data.MySQL s.ProfileEnd = Convert.ToUInt16(row["ProfileEnd"]); s.ProfileCurve = Convert.ToByte(row["ProfileCurve"]); s.ProfileHollow = Convert.ToUInt16(row["ProfileHollow"]); -byte[] textureEntry = (byte[]) row["Texture"]; + byte[] textureEntry = (byte[]) row["Texture"]; s.TextureEntry = textureEntry; s.ExtraParams = (byte[]) row["ExtraParams"];