Details
Description
The code below results in an assert error (with sane jars) or a ClassCastException (with insane jars):
PreparedStatement ps = c.prepareStatement("values cast(? as blob)");
int len = 32 * 1024;
ps.setBinaryStream(1, new ByteArrayInputStream(new byte[len]), len);
ResultSet rs = ps.executeQuery();
while (rs.next())
If len < 32K there is no error.
Attachments
Attachments
Issue Links
- is related to
-
DERBY-4130 Using large stream with 'values cast(? as clob)' causes OutOfMemoryError
- Open
- relates to
-
DERBY-3844 ASSERT failure in BasePage.unlatch() when running LobStreamsTest
- Closed