[Mono-bugs] [Bug 59420][Min] Changed - SqlGuid.CompareTo is incorrect.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 14 Jan 2005 04:45:36 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by atsushi@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=59420

--- shadow/59420	2004-06-08 02:01:59.000000000 -0400
+++ shadow/59420.tmp.15808	2005-01-14 04:45:36.000000000 -0500
@@ -1,13 +1,13 @@
 Bug#: 59420
 Product: Mono: Class Libraries
 Version: unspecified
 OS: Red Hat 9.0
 OS Details: 
-Status: RESOLVED   
-Resolution: FIXED
+Status: REOPENED   
+Resolution: 
 Severity: Unknown
 Priority: Minor
 Component: Sys.Data
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: sebastien.robitaille@croesus.com               
 QAContact: mono-bugs@ximian.com
@@ -66,6 +66,19 @@
 Additional Information:
 
 ------- Additional Comments From sumadevi@novell.com  2004-06-08 02:01 -------
 Implemented CompareTo method according to MSDN documentation
 
 
+
+------- Additional Comments From atsushi@ximian.com  2005-01-14 04:45 -------
+The MSDN documentation is not correct. It actually differentiates the
+remaining bits. It differs from System.Guid only in the sorting order
+that considers the last 6 bytes in prior to the rest.
+
+The example (SqlGuidTest.CompareTo() btw) fails under MS.NET (1.1 SP1):
+
+SqlGuid test1 = new SqlGuid("1AAAAAAA-BBBB-CCCC-DDDD-3EEEEEEEEEEE");
+SqlGuid test3 = new SqlGuid("1AAAAAAA-BBBB-CCCC-DDDD-1EEEEEEEEEEE");
+Assert ("#D01", Test1.CompareTo (Test3) == 0);
+
+