[Mono-bugs] [Bug 73967][Nor] Changed - System.Data.OdbcDataReader.GetString() returns extra characters

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 22 Mar 2005 19:20:55 -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 danielmorgan@verizon.net.

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

--- shadow/73967	2005-03-22 16:04:39.000000000 -0500
+++ shadow/73967.tmp.15595	2005-03-22 19:20:55.000000000 -0500
@@ -61,6 +61,11 @@
 column before returning data.  There is a performance hit in checking the column size 
 each lookup, but the way the code is currently structured, anything that is not caught in 
 the switch would be effected by the interim hack of simply doing a substring(0, 
 indexof(0x00));
 
 
+
+------- Additional Comments From danielmorgan@verizon.net  2005-03-22 19:20 -------
+a CHAR data type pads with spaces.  So, if a column has a size of 16
+and  the value you insert or update is 5, it will be be right padded
+with 11 spaces.  a VARCHAR data type does not pad with spaces.