[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.

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

--- 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: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System.Data
+AssignedTo: gsanjay@novell.com                            
+ReportedBy: gsanjay@novell.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+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
+(System.Globalization.CultureInfo)
+in <0x00073> System.Data.UniqueConstraint:CalcHashValue
+(System.Data.DataRow,bool)
+in <0x0007f> .RowsComparer:Compare (object,object)
+in <0x0008f> System.Array:compare (object,object,System.Collections.IComparer)
+in <0x00084> System.Array:qsort
+(System.Array,System.Array,int,int,System.Collections.IComparer)
+in <0x0021a> System.Array:Sort
+(System.Array,System.Array,int,int,System.Collections.IComparer)
+--- End of inner exception stack trace ---
+ 
+in <0x00258> System.Array:Sort
+(System.Array,System.Array,int,int,System.Collections.IComparer)
+in <0x00075> System.Array:Sort (System.Array,System.Collections.IComparer)
+in <0x0015d> System.Data.UniqueConstraint:AssertConstraint ()
+in <0x000d9> System.Data.UniqueConstraint:AddToConstraintCollectionSetup
+(System.Data.ConstraintCollection)
+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
+(System.Data.DataColumn,System.Data.DataColumn)
+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