nizhikov commented on code in PR #11518:
URL: https://github.com/apache/ignite/pull/11518#discussion_r1811354194
##########
modules/core/src/main/java/org/apache/ignite/internal/jdbc/thin/JdbcThinPreparedStatement.java:
##########
@@ -446,7 +446,17 @@ private void executeWithArguments(JdbcStatementType
stmtType) throws SQLExceptio
@Override public void setBinaryStream(int paramIdx, InputStream x, long
length) throws SQLException {
ensureNotClosed();
- throw new SQLFeatureNotSupportedException("Streams are not
supported.");
+ if (length < 0)
+ throw new SQLException("Invalid argument. Length should be greater
than 0.");
+
+ if (length > MAX_ARRAY_SIZE)
+ throw new SQLFeatureNotSupportedException("Invalid argument.
InputStreams with length > " + MAX_ARRAY_SIZE +
Review Comment:
with length greater then ...
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]