[Mono-bugs] [Bug 49856][Nor] New - SqlClient: Exception when using string parameters with length 0

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 20 Oct 2003 05:19:06 -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 joergr@voelcker.com.

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

--- shadow/49856	2003-10-20 05:19:06.000000000 -0400
+++ shadow/49856.tmp.25558	2003-10-20 05:19:06.000000000 -0400
@@ -0,0 +1,38 @@
+Bug#: 49856
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System.Data.SqlClient
+AssignedTo: rodrigo@ximian.com                            
+ReportedBy: JoergR@voelcker.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: SqlClient: Exception when using string parameters with length 0
+
+Description of Problem:
+An exception is thrown when using IDataParameters of type String with
+length 0 in SqlClient.
+
+Steps to reproduce the problem:
+1. Replace connection string in attached sample
+2. Compile 
+3. Run
+
+Actual Results:
+Unhandled Exception: System.Data.SqlClient.SqlException: 
+Line 1: Length or precision specification 0 is invalid.
+
+Expected Results:
+Length=0, Value=""
+
+How often does this happen? 
+Alawys
+
+Additional Information: