Bug #12933 StringReader passed to preparedStatement.setCharacterStream gets truncated
Submitted: 1 Sep 2005 17:05 Modified: 1 Sep 2005 17:09
Reporter: Scott Marlow Email Updates:
Status: Duplicate Impact on me:
None 
Category:Connector / J Severity:S2 (Serious)
Version:3.1.10 OS:Linux (Suse Linux)
Assigned to: CPU Architecture:Any

[1 Sep 2005 17:05] Scott Marlow
Description:
I have a Java string with characters in it that are represented as two byte sequences if the string is converted to UTF8.  If I pass this value via a StringReader to preparedStatement.setCharacterStream, the string value loses one character from the end for each two byte character included in the value.

How to repeat:
Create a UTF8 database called EPMDataSource and use the attached test program.
[1 Sep 2005 17:09] Scott Marlow
Mark is much faster than me :-)

This is a duplicate of BUG#11614