[Mono-bugs] [Bug 36577][Nor] New - SqlDataReader.GetString() returns extra character.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Fri, 10 Jan 2003 14:13:07 -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 egonia@acxiom.com.

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

--- shadow/36577	Fri Jan 10 14:13:07 2003
+++ shadow/36577.tmp.4997	Fri Jan 10 14:13:07 2003
@@ -0,0 +1,44 @@
+Bug#: 36577
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System.Data.SqlClient
+AssignedTo: rodrigo@ximian.com                            
+ReportedBy: egonia@acxiom.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: SqlDataReader.GetString() returns extra character.
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+I using mono 0.17 on Windows and Linux. I had trouble updating to the 
+latest CVS so I cannot verify the bug still exists in current CVS.
+
+SqlDataReader.GetString(int i) returns an extra character on the end. 
+Converting to an int with Convert.ToInt32 on the character returns 0.
+
+
+Steps to reproduce the problem:
+1. Open a connection to MSSQL server.
+2. Execute command.ExecuteReader
+3. Use reader.GetString() to get the value of a field.
+
+Actual Results:
+
+
+Expected Results:
+
+
+How often does this happen? 
+
+
+Additional Information:
+Work around is to use TrimEnd(Convert.ToChar(0)) on returned string.