Description
When inserting a row into following table
BYTEARRAY_TEST( ID int, BYTEARRAY_VAL blob)
PreparedStatement#setNull(int parameterIndex, int sqlType) throws SQL Exception if given sqlType is LONGVARBINARY. You must give sqlType BLOB to make the insert work. The same test works using sqlType LONGVARBINARY in network mode. The following combinations don't work:
Column type sqlType not working mandatory sqlType
BLOB LONGVARBINARY BLOB
CLOB LONGVARCHAR CLOB
The issue here is that first Derby behaves differently in network and embedded mode. And secondly, should accept LONGVARBINARY/LONGVARCHAR for BLOB/CLOB columns.
Attachments
Attachments
Issue Links
- incorporates
-
DERBY-1494 PreparedStatement.setNull(int, int) checks type compatibility on embedded, but not on the client
- Closed
- is part of
-
DERBY-1610 Resolve difference of type compatibility between Embedded and NetworkServer/NetworkDriver
- Closed
- is related to
-
DERBY-310 Document and/or change Derby client code to match behavior with Embedded driver where possible.
- Closed