[Mono-bugs] [Bug 47639][Nor] New - SqlDataReader.GetChars fails to read TEXT fields.
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 14 Aug 2003 04:57:28 -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=47639
--- shadow/47639 2003-08-14 04:57:27.000000000 -0400
+++ shadow/47639.tmp.23465 2003-08-14 04:57:27.000000000 -0400
@@ -0,0 +1,42 @@
+Bug#: 47639
+Product: Mono/Class Libraries
+Version: unspecified
+OS: Debian Woody
+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: SqlDataReader.GetChars fails to read TEXT fields.
+
+Description of Problem:
+If you want to read a TEXT field using SqlDataReader.GetChars an
+InvalidCastException is raised.
+
+Steps to reproduce the problem:
+1. Set connection string in attached example.
+2. Compile
+3. Run
+
+Actual Results:
+Exception caught: System.InvalidCastException: Type is System.String
+in <0x000bf> 00 System.Data.SqlClient.SqlDataReader:GetChars
+(int,long,char[],int,int)
+in <0x00126> 00 Bug.MainClass:Main ()
+
+
+Expected Results:
+Read 5 chars. Buffer is 5 chars long.
+
+How often does this happen?
+Always.
+
+Additional Information:
+Additional problem: this function should behave like GetBytes (see bug #47420)