[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, 30 Mar 2004 10:33:57 -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 lluis@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=51933
--- shadow/51933 2004-03-30 10:33:57.000000000 -0500
+++ shadow/51933.tmp.4203 2004-03-30 10:33:57.000000000 -0500
@@ -0,0 +1,81 @@
+Bug#: 51933
+Product: Mono: Class Libraries
+Version: unspecified
+OS: unknown
+OS Details:
+Status: RESOLVED
+Resolution: FIXED
+Severity: Unknown
+Priority: Wishlist
+Component: Sys.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
+
+------- Additional Comments From gsanjay@novell.com 2003-12-09 10:30 -------
+Created an attachment (id=6162)
+Source code to reproduce the problem
+
+
+------- Additional Comments From gsanjay@novell.com 2003-12-09 10:31 -------
+Created an attachment (id=6163)
+Patch for the bug
+
+
+------- Additional Comments From lluis@ximian.com 2004-03-30 10:33 -------
+This was been fixed by the rewrite of UniqueConstraint that Eran Domb
+commited some weeks ago. In any case, I finished the implementation of
+CaseInsensitiveHashCodeProvider.