[Mono-dev] patch for dataset binary deserialization bugs

brandin claar brandin.claar at gmail.com
Sun Sep 21 21:33:08 EDT 2008


On Sun, Sep 21, 2008 at 2:43 PM, Miguel de Icaza <miguel at novell.com> wrote:

> Hello,
>
> > I found 2 bugs while trying to deserialize binary datasets
> > from .NET:
> >
> > 1.  A column with a DefaultValue set to anything other than DBNull
> > would throw an exception.
> >
> > 2.  A table with zero rows would throw an exception.
> >
> > I have attached the patch I used to solve these issues.  Let me know
> > if I'm out of my mind.  This is my first foray into debugging Mono.
>
> Could you please provide NUnit tests for these two issues.   Currently
> we do not know what scenario is causing this problem, and without Unit
> tests, we would not have a way of avoiding a regression in the future.
>
>
Tests were committed, along with a similar patch:

http://anonsvn.mono-project.com/viewvc?view=rev&revision=113148

http://anonsvn.mono-project.com/viewvc/trunk/mcs/class/System.Data/Test/System.Data/BinarySerializationTest.cs?r1=76776&r2=113148&pathrev=113148
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080921/fb217305/attachment-0001.html 


More information about the Mono-devel-list mailing list