[Mono-bugs] [Bug 59643][Nor] New - SqlDateTime.IsNull doesn't work
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 6 Jun 2004 03:30:31 -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 rpaterlini@hotmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=59643
--- shadow/59643 2004-06-06 03:30:31.000000000 -0400
+++ shadow/59643.tmp.19561 2004-06-06 03:30:31.000000000 -0400
@@ -0,0 +1,70 @@
+Bug#: 59643
+Product: Mono: Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.Data
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: rpaterlini@hotmail.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: SqlDateTime.IsNull doesn't work
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+SqlDateTime.IsNull doesn't work
+
+Sample code:
+---------------------------------------------------------------
+using System;
+using System.Data.SqlTypes;
+
+
+namespace SharpConsole {
+
+ class Class1 {
+
+
+ static void Main(string[] args) {
+
+ SqlDateTime VCODelGiorno = SqlDateTime.Null;
+ Console.WriteLine( "Must be True --> " +
+VCODelGiorno.IsNull.ToString() );
+ VCODelGiorno = new DateTime(2003,2,25);
+ Console.WriteLine( "Must be False --> " +
+VCODelGiorno.IsNull.ToString() );
+
+ }
+ }
+}
+--------------------------------------------------------------
+
+Steps to reproduce the problem:
+1. mcs x.cs /r:System.Data.dll
+2. mono x.exe
+
+
+Actual Results:
+Must be True --> True
+Must be False --> True
+
+Expected Results:
+Must be True --> True
+Must be False --> False
+
+
+How often does this happen?
+Always
+
+Additional Information:
+This variabile in SqlDateTime.cs is not initialized.
+public static readonly SqlDateTime Null;
+
+Running on Windows2003 with Mono beta2