+1 to follow the spec and remove the tests On Thu, 1 Apr 2021 at 14:50, Mark Struberg <strub...@yahoo.de.invalid> wrote: > > hi! > > While working on SQLServer tests I came across a clarification in JDBC4 that > reading a LOB via InputStream _is_ possible, but you have to consume that > stream before you get the next attribute. ANY further get on the ResultSet > will close the open InputStream per spec. > > This has an effect on our 'extended' non-portable feature > > @Persistent > private InputStream stream; > > This is basically not possible anymore per JDBC4 spec is my interpretation. > Because if we get a List<InputStreamLobEntity> with 10.000 entries, then we > would have 10.000 InputStreams open. That's of course a bad idea, and I fully > understand that JDBC4 clarification. > > Should we get rid of those tests and feature? > It was only avail on 4 databases anyway. > Tests are > TestInputStreamLob and > TestReaderLob > > Wdyt? > > LieGrue, > strub > >
-- Best regards, Maxim