[Mono-devel-list] [PATCH] bug in System.Data.DataRelation.Add(...)

eran erand at mainsoft.com
Mon Sep 22 09:24:36 EDT 2003

I think I found a bug in
tCollection collection, DataColumn [] parentColumns)
Steps to reproduce the problem:
1.	create a DataSet. Add a DataTable to the DataSet. Add some
columns to the table. Set a PrimaryKey to the table.
2.	create a second DataTable. Add some columns to the table. Add
the table to the DataSet.
3.	Add a relation to the DataSet where the parent column is the
primary key of the first table and the child is a column from the second
Actual Result:
An exception is thrown - UniqueConstraint already exists.
Expected Result:
The relation should be added to the DataSet.
Enclosed is a small test and a patch.
Eran Domb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030922/5da38993/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: constraint.diff
Type: application/octet-stream
Size: 3891 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030922/5da38993/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/5da38993/attachment.pl 

More information about the Mono-devel-list mailing list