[Mono-bugs] [Bug 66167][Nor] New - DataSet.Clear should not enforce constraints

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 17 Sep 2004 10:35:11 -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 rscaletta@augustmack.com.

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

--- shadow/66167	2004-09-17 10:35:11.000000000 -0400
+++ shadow/66167.tmp.30447	2004-09-17 10:35:11.000000000 -0400
@@ -0,0 +1,44 @@
+Bug#: 66167
+Product: Mono: Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Data
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: rscaletta@augustmack.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: DataSet.Clear should not enforce constraints
+
+Description of Problem:
+When you Clear() a DataSet containing parent - child relationships, Mono
+throws an InvalidConstraintException.  No actual data rows need to be in
+the dataset.
+
+This is different behavior from MS .NET Framework v1.1.  They apparantly
+suspend constraint checking while clearing the dataset.
+
+This incompatibility breaks my company's web application.  Bummer.
+
+Steps to reproduce the problem:
+1. Create a DataSet and define relationships between tables.
+2. call DataSet.Clear().  Note that you don't need to add any rows to the
+dataset at all!
+
+Actual Results:
+Throws InvalidConstraintException
+
+Expected Results:
+clear the dataset; do not throw any exception.
+
+How often does this happen? 
+Every time.
+
+Additional Information:
+Will attach test program.