nizhikov commented on code in PR #11518:
URL: https://github.com/apache/ignite/pull/11518#discussion_r1811354892


##########
modules/core/src/main/java/org/apache/ignite/internal/jdbc/thin/JdbcThinResultSet.java:
##########
@@ -587,9 +598,18 @@ else if (cls == String.class) {
 
     /** {@inheritDoc} */
     @Override public InputStream getBinaryStream(int colIdx) throws 
SQLException {
-        ensureNotClosed();
+        Object val = getValue(colIdx);
+
+        if (val == null)
+            return null;
+
+        if (val instanceof JdbcBlobBuffer)
+            return ((JdbcBlobBuffer)val).getInputStream();
+        else {
+            byte[] bytes = getBytes(colIdx);

Review Comment:
   `bytes` can be inlinded.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to