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

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 1 Jun 2004 17:39:28 -0400 (EDT)


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 sebastien.robitaille@croesus.com.

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

--- shadow/59420	2004-06-01 17:39:28.000000000 -0400
+++ shadow/59420.tmp.32433	2004-06-01 17:39:28.000000000 -0400
@@ -0,0 +1,66 @@
+Bug#: 59420
+Product: Mono: Class Libraries
+Version: unspecified
+OS: Red Hat 9.0
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: Sys.Data
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: sebastien.robitaille@croesus.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: SqlGuid.CompareTo is incorrect.
+
+Description of Problem:
+
+According to the MSDN documentation:
+"Guid and SqlGuid implement the CompareTo method differently."
+
+See "http://msdn.microsoft.com/library/default.asp?url=/library/en-
+us/cpref/html/frlrfsystemdatasqltypessqlguidclasstopic.asp" for more 
+details.
+
+Actually, SqlGuid.CompareTo is simply calling Guid.CompareTo, which is 
+incorrect.
+
+Steps to reproduce the problem:
+1. Run the sample code provided by MSDN (see link above).
+
+Actual Results:
+--Unsorted Guids--
+3aaaaaaa-bbbb-cccc-dddd-2eeeeeeeeeee
+2aaaaaaa-bbbb-cccc-dddd-1eeeeeeeeeee
+1aaaaaaa-bbbb-cccc-dddd-3eeeeeeeeeee
+--Sorted Guids--
+1aaaaaaa-bbbb-cccc-dddd-3eeeeeeeeeee
+2aaaaaaa-bbbb-cccc-dddd-1eeeeeeeeeee
+3aaaaaaa-bbbb-cccc-dddd-2eeeeeeeeeee
+--Sorted SqlGuids--
+1aaaaaaa-bbbb-cccc-dddd-3eeeeeeeeeee
+2aaaaaaa-bbbb-cccc-dddd-1eeeeeeeeeee
+3aaaaaaa-bbbb-cccc-dddd-2eeeeeeeeeee
+
+
+Expected Results:
+--Unsorted Guids--
+3aaaaaaa-bbbb-cccc-dddd-2eeeeeeeeeee
+2aaaaaaa-bbbb-cccc-dddd-1eeeeeeeeeee
+1aaaaaaa-bbbb-cccc-dddd-3eeeeeeeeeee
+--Sorted Guids--
+1aaaaaaa-bbbb-cccc-dddd-3eeeeeeeeeee
+2aaaaaaa-bbbb-cccc-dddd-1eeeeeeeeeee
+3aaaaaaa-bbbb-cccc-dddd-2eeeeeeeeeee
+--Sorted SqlGuids--
+2aaaaaaa-bbbb-cccc-dddd-1eeeeeeeeeee
+3aaaaaaa-bbbb-cccc-dddd-2eeeeeeeeeee
+1aaaaaaa-bbbb-cccc-dddd-3eeeeeeeeeee
+
+How often does this happen? 
+Always
+
+Additional Information: