[Mono-bugs] [Bug 58163][Nor] Changed - Null values in Postgres DB don't evaluate to null

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 17 Jul 2004 07:00:38 -0400 (EDT)

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by dobos_s@ibcnet.hu.


--- shadow/58163	2004-07-17 06:54:44.000000000 -0400
+++ shadow/58163.tmp.8409	2004-07-17 07:00:37.000000000 -0400
@@ -146,6 +146,27 @@
 ------- Additional Comments From dobos_s@ibcnet.hu  2004-07-17 06:54 -------
 Created an attachment (id=8620)
 patch against mono-1.0
+------- Additional Comments From dobos_s@ibcnet.hu  2004-07-17 07:00 -------
+I thought, that this is a ByteFX DataAdapter problem. 
+The signs were the same: I cannot Fill DataSet through 
+MySqlDataAdapter, if records contains NULL values.
+I checked mono-1.0 System.Data library source and found, that
+it is inconsistent in DBNull and null value usage and
+DataContainer is inconsistent in checking DBNull before trying
+e.g. to GetDateTime from record.
+The library source doesnt propagate the InvalidCastException in 
+normal way, but raises FillError event with attached exception code.
+That is why the source of error is not consistent.
+I attached two patches, which work for me.
+I am new in Bugzilla, so I hope I didnt made mistakes :-)
+Sandor Dobos (cly)