This is related to Cloudscape bug 4250.
Pass negative length as the stream length for various setXXXStream methods should throw an exception. But in Net Client mode, passing a negative value as stream length to PreparedStatement.setAsciiStream() doesn't throw an exception.
e.g. //from store/StreamingColumn
PreparedStatement ps = prepareStatement("insert into "
+ "testLongVarCharInvalidStreamLength11 values(?, ?, ?)");
This issue has been fixed for embedded mode, but not for client mode.