[Mono-bugs] [Bug 39091][Wis] New - Incorrect TypeCode for DBNull
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Wed, 5 Mar 2003 06:59:01 -0500 (EST)
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 avd@openlinksw.com.
http://bugzilla.ximian.com/show_bug.cgi?id=39091
--- shadow/39091 Wed Mar 5 06:59:01 2003
+++ shadow/39091.tmp.8700 Wed Mar 5 06:59:01 2003
@@ -0,0 +1,49 @@
+Bug#: 39091
+Product: Mono/Runtime
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: avd@openlinksw.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Incorrect TypeCode for DBNull
+
+Description of Problem:
+
+The Type.GetTypeCode() method returns TypeCode.Object
+value for System.DBNull type while it should return
+TypeCode.DBNull.
+
+Steps to reproduce the problem:
+Run this simple program:
+
+using System;
+
+public class TestDBNullTypeCode
+{
+ public static void Main (string[] args)
+ {
+ Type type = DBNull.Value.GetType ();
+ TypeCode typeCode = Type.GetTypeCode (type);
+ Console.WriteLine ("DBNull Type: {0}", type);
+ Console.WriteLine ("DBNull TypeCode: {0}", typeCode);
+ }
+}
+
+Actual Results:
+
+DBNull Type: System.DBNull
+DBNull TypeCode: Object
+
+Expected Results:
+
+DBNull Type: System.DBNull
+DBNull TypeCode: DBNull