[Mono-devel-list] [PATCH] missing validation in System.Data.DataRowCollection.Add(DataRow row)
eran
erand at mainsoft.com
Mon Sep 22 06:11:48 EDT 2003
Hi,
There is no checking in System.Data.DataRowCollection.Add(DataRow row)
that there is no violation of the unique constrains.
Steps to reproduce the problem:
1. Add DataRow to a DataTable that has a uniqueConstraint on one of the
columns.
2. Try to add a second DataRow that has the same value in the
uniqueConstaraint column.
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.
Thanks
Eran Domb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030922/2f05230f/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DataRowCollection.cs.diff
Type: application/octet-stream
Size: 641 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030922/2f05230f/attachment.obj
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: TestCase.cs
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030922/2f05230f/attachment.pl
More information about the Mono-devel-list
mailing list