[Mono-bugs] [Bug 47420][Wis] New - SqlDataReader.GetBytes should return length of field when buffer == null

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Wed, 6 Aug 2003 09:33:30 -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=47420

--- shadow/47420	Wed Aug  6 09:33:30 2003
+++ shadow/47420.tmp.17444	Wed Aug  6 09:33:30 2003
@@ -0,0 +1,38 @@
+Bug#: 47420
+Product: Mono/Class Libraries
+Version: unspecified
+OS: Debian Woody
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System.Data.SqlClient
+AssignedTo: rodrigo@ximian.com                            
+ReportedBy: JoergR@voelcker.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: SqlDataReader.GetBytes should return length of field when buffer == null
+
+Description of Problem:
+GetBytes should return the length of the data field when parameter 
+'buffer' is set to null. Mono throws an ArgumentNullException in 
+this case. The attached patch should fix this behaviour. 
+
+
+Steps to reproduce the problem:
+1. Call SqlDataReader.GetBytes with parameter buffer set to null
+
+Actual Results:
+ArgumentNullException
+
+Expected Results:
+Length of data field
+
+How often does this happen? 
+Always
+
+Additional Information:
+I have attached a patch for this problem.