[Mono-devel-list] DataContainer and NULL DateTime

Aleksey Demakov avd at online.nsk.su
Tue Jul 6 19:48:38 EDT 2004


Hi all,

I found that my DbDataAdapter cannot Fill() a table
that contains a NULL in a datetime column.

I tracked this problem down to the
DateTimeDataContainer.SetItemFromDataRecord() method.
It doesnt't check for DBNull before getting the
DateTime value although in other places e.g. in
StringDataContainer such check exists.

Please review the attached fix.

Regards,
Aleksey

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: DataContainer.cs.patch
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040707/e7bb94b5/attachment.pl 


More information about the Mono-devel-list mailing list