[Mono-bugs] [Bug 75150][Nor] New - DataSet.Merge() can throw ConstraintException

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Jun 3 21:43:11 EDT 2005


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 george.barbarosie at gmail.com.

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

--- shadow/75150	2005-06-03 21:43:11.000000000 -0400
+++ shadow/75150.tmp.31075	2005-06-03 21:43:11.000000000 -0400
@@ -0,0 +1,42 @@
+Bug#: 75150
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Data
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: george.barbarosie at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: DataSet.Merge() can throw ConstraintException
+
+On SVN trunk version, DataSet.Merge() can throw ConstraintException when
+merged dataset contains table relations.
+
+Testcase (to be attached immediately) trhows this exception:
+
+Unhandled Exception: System.Data.ConstraintException: Failed to enable
+constraints. One or more rows contain values violating non-null, unique, or
+foreign-key constraints.
+in <0x00024> System.Data.Constraint:ThrowConstraintException ()
+in <0x00015> System.Data.Constraint:AssertConstraint ()
+in <0x0024e> System.Data.DataSet:InternalEnforceConstraints (Boolean value,
+Boolean resetIndexes)
+in <0x00014> System.Data.DataSet:set_EnforceConstraints (Boolean value)
+in <0x000a4> System.Data.MergeManager:Merge (System.Data.DataSet targetSet,
+System.Data.DataTable sourceTable, Boolean preserveChanges,
+MissingSchemaAction missingSchemaAction)
+in <0x0009d> System.Data.MergeManager:Merge (System.Data.DataSet targetSet,
+System.Data.DataSet sourceSet, Boolean preserveChanges, MissingSchemaAction
+missingSchemaAction)
+in <0x00028> System.Data.DataSet:Merge (System.Data.DataSet dataSet,
+Boolean preserveChanges, MissingSchemaAction missingSchemaAction)
+in <0x00014> System.Data.DataSet:Merge (System.Data.DataSet dataSet)
+in <0x0025b> Test:TestCase1 ()
+in <0x00007> Test:Main ()


More information about the mono-bugs mailing list