Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
10.8.1.2
-
None
-
Repro attached
-
Embedded/Client difference, Wrong query result
Description
Can be seen with this JUnit test case that retrieves a VARCHAR value with 20000 characters. With the client driver, the string is truncated to 10900 characters (32700 bytes when encoded in UTF-8).
public void testLongColumn() throws SQLException
{ PreparedStatement ps = prepareStatement( "values cast(? as varchar(20000))"); char[] chars = new char[20000]; Arrays.fill(chars, '\u4e10'); String str = new String(chars); ps.setString(1, str); JDBC.assertSingleValueResultSet(ps.executeQuery(), str); }Attachments
Attachments
Issue Links
- is related to
-
DERBY-5220 Output from org.apache.derby.drda.NetworkServerControl runtimeinfo are truncated if the amount of data exceeds some threshold
- Open
-
DERBY-6456 Infinite loop in NetworkServerControlImpl when reply >= 32k
- Closed
- relates to
-
DERBY-5235 Remove the artificial limit on the length of VARCHAR values, allowing them to be java.lang.Integer.MAX_VALUE long
- Open