[Mono-devel-list] [PATCH] bug in System.Data.UniqueConstraint.AssertConstraint(DataRow row)

eran erand at mainsoft.com
Mon Sep 22 07:16:57 EDT 2003

In System.Data.UniqueConstraint.AssertConstraint(DataRow row) there is
no checking on all columns in the constraint.
Steps to reproduce the problem:
1. Add DataRow to a DataTable that has a uniqueConstraint on 2 of the
columns in the table.
2. Try to add a second DataRow that has the same value in the
uniqueConstaraint columns.
Actual Result:
The row is added to the table.
Expected Result:
A ConstraintException should be thrown.
Enclosed is a small test case and a patch.
Eran Domb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030922/587e156a/attachment.html 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: TestCase.cs
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030922/587e156a/attachment.pl 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: UniqueConstraint.cs.diff
Type: application/octet-stream
Size: 2571 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030922/587e156a/attachment.obj 

More information about the Mono-devel-list mailing list