[Mono-bugs] [Bug 75110][Nor] Changed - [PATCH] ReadXml() fails for foreign key cases

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jun 1 16:25:03 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.


--- shadow/75110	2005-06-01 12:46:20.000000000 -0400
+++ shadow/75110.tmp.31772	2005-06-01 16:25:03.000000000 -0400
@@ -29,6 +29,23 @@
 ------- Additional Comments From george.barbarosie at gmail.com  2005-06-01 12:45 -------
 Created an attachment (id=15248)
 proposed patch
+------- Additional Comments From george.barbarosie at gmail.com  2005-06-01 16:25 -------
+i've failed to address what i meant by "foreign key constraints checks
+fail"; if you run the attached sample, you get the following 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 <0x00116> System.Data.DataSet:InternalEnforceConstraints (Boolean
+value, Boolean resetIndexes)
+in <0x00014> System.Data.DataSet:set_EnforceConstraints (Boolean value)
+in <0x00062> Test:Main ()
+Obviously the dataset is consistent, so the exception is not justified.

More information about the mono-bugs mailing list