[Mono-bugs] [Bug 74948][Nor] New - new SqlParameter ("@P1", DBNull.Value);

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat May 14 15:28:37 EDT 2005


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 bmaurer at users.sf.net.

http://bugzilla.ximian.com/show_bug.cgi?id=74948

--- shadow/74948	2005-05-14 15:28:37.000000000 -0400
+++ shadow/74948.tmp.24564	2005-05-14 15:28:37.000000000 -0400
@@ -0,0 +1,43 @@
+Bug#: 74948
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Data
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: bmaurer at users.sf.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: new SqlParameter ("@P1", DBNull.Value);
+
+[benm at omega benm]$ cat zzz.cs
+using System;
+using System.Data;
+using System.Data.SqlClient;
+ 
+class X {
+        static void Main ()
+        {
+                new SqlParameter ("@P1", DBNull.Value);
+        }
+}[benm at omega benm]$ mono zzz.exe
+ 
+Unhandled Exception: System.ArgumentException: The parameter data type of
+DBNull is invalid.
+in <0x001f1> System.Data.SqlClient.SqlParameter:InferSqlType (System.Object
+value)
+in (wrapper remoting-invoke-with-check)
+System.Data.SqlClient.SqlParameter:InferSqlType (object)
+in <0x00067> System.Data.SqlClient.SqlParameter:.ctor (System.String
+parameterName, System.Object value)
+in (wrapper remoting-invoke-with-check)
+System.Data.SqlClient.SqlParameter:.ctor (string,object)
+in <0x00024> X:Main ()
+
+Works on msft...


More information about the mono-bugs mailing list