ResultSet.wasNull reports false for getBytes when value is null
Posted by: Chris Cheshire
Date: June 26, 2018 04:58PM

I have a tables with nullable blob columns. When reading from a result set using CJ 5.1 I have been able to use ResultSet.getBytes() and check ResultSet.wasNull() before operating on the byte[].

Since upgrading to CJ 8.0, this no longer works. wasNull() is returning false when getBytes() is returning null for a null value. For a non-null value everything is ok.

Bug or should I not be using getBytes for a blob?

Options: ReplyQuote


Subject
Written By
Posted
ResultSet.wasNull reports false for getBytes when value is null
June 26, 2018 04:58PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.