[Mono-bugs] [Bug 58163][Maj] Changed - Null values in Postgres DB don't evaluate to null
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 11 May 2004 14:58:33 -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 atsushi@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=58163
--- shadow/58163 2004-05-11 14:28:12.000000000 -0400
+++ shadow/58163.tmp.24105 2004-05-11 14:58:33.000000000 -0400
@@ -36,6 +36,38 @@
Additional Information:
This works as expected on Windows.
------- Additional Comments From vargaz@freemail.hu 2004-05-11 14:28 -------
-> class libs
+
+------- Additional Comments From atsushi@ximian.com 2004-05-11 14:58 -------
+I tried an example code under MS.NET:
+
+using System;
+using System.Data;
+
+public class MyClass
+{
+ public static void Main()
+ {
+ try {
+ DataTable dt = new DataTable ();
+ dt.Columns.Add ("col1");
+ dt.Columns.Add ("col2");
+ DataRow r = dt.NewRow ();
+ r ["col1"] = "test";
+ dt.Rows.Add (r);
+ Console.WriteLine (r ["col2"] != null);
+ } catch (Exception ex) {
+ Console.WriteLine (ex);
+ }
+ }
+}
+
+The result was "True" as opposed to the report's expectation.
+
+Or it might return when we try data fill under Npgsql (Though it
+sounds like DataRow problem, and it did not vary even if I explicitly
+let null (not DBNull.Value) to "col2" above.
+
+Can you provide us a reproducable code?