[Mono-bugs] [Bug 51933][Wis] New - Unable to add a DataRelation object to DataSet class

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 9 Dec 2003 10:29:31 -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 gsanjay@novell.com.


--- shadow/51933	2003-12-09 10:29:31.000000000 -0500
+++ shadow/51933.tmp.16866	2003-12-09 10:29:31.000000000 -0500
@@ -0,0 +1,66 @@
+Bug#: 51933
+Product: Mono/Class Libraries
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Wishlist
+Component: System.Data
+AssignedTo: gsanjay@novell.com                            
+ReportedBy: gsanjay@novell.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Unable to add a DataRelation object to DataSet class
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+Whenever a DataRelation object is added to a DataSet, the application quits
+giving exceptions
+Steps to reproduce the problem:
+1. Please execute the attached file DataSetCerialization.cs
+Actual Results:
+Unhandled Exception: System.InvalidOperationException: The comparer threw
+an exception ---> System.NotImplementedException: The requested feature is
+not yet implemented
+in <0x00030> System.Collections.CaseInsensitiveHashCodeProvider:.ctor
+in <0x00073> System.Data.UniqueConstraint:CalcHashValue
+in <0x0007f> .RowsComparer:Compare (object,object)
+in <0x0008f> System.Array:compare (object,object,System.Collections.IComparer)
+in <0x00084> System.Array:qsort
+in <0x0021a> System.Array:Sort
+--- End of inner exception stack trace ---
+in <0x00258> System.Array:Sort
+in <0x00075> System.Array:Sort (System.Array,System.Collections.IComparer)
+in <0x0015d> System.Data.UniqueConstraint:AssertConstraint ()
+in <0x000d9> System.Data.UniqueConstraint:AddToConstraintCollectionSetup
+in <0x00127> System.Data.ConstraintCollection:Add (System.Data.Constraint)
+in <0x00429> .DataSetRelationCollection:AddCore (System.Data.DataRelation)
+in <0x0001b> System.Data.DataRelationCollection:Add (System.Data.DataRelation)
+in <0x0005b> System.Data.DataRelationCollection:Add
+in <0x003ae> DataSetXML.Class1:Main (string[])
+Expected Results:
+DataRelation object should be added to the DataSet
+How often does this happen? 
+Additional Information:
+Please see the attachment for patch