[Mono-bugs] [Bug 72851][Nor] New - SqlDataReader.GetBytes() returns incorrect number of read bytes

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 22 Feb 2005 10:58:14 -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 dezelin@gmail.com.

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

--- shadow/72851	2005-02-22 10:58:14.000000000 -0500
+++ shadow/72851.tmp.16661	2005-02-22 10:58:14.000000000 -0500
@@ -0,0 +1,43 @@
+Bug#: 72851
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: Fedora Core 3; Mono-1.1.4 build from source
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Data.SqlClient
+AssignedTo: rodrigo@novell.com                            
+ReportedBy: dezelin@gmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: SqlDataReader.GetBytes() returns incorrect number of read bytes
+
+Description of Problem:
+
+SqlDataReader.GetBytes() returns incorrect number of read bytes
+
+
+Steps to reproduce the problem:
+
+const int BufferSize = 512;
+byte[] outByte = new byte[BufferSize];
+long retval = reader.GetBytes(1, start, outByte, 0, BufferSize);
+ 
+
+Actual Results:
+127646
+
+Expected Results:
+512
+(Reading from blob field in MSSQL databse table of the size > 10K)
+
+
+How often does this happen? 
+Always
+
+
+Additional Information: