nizhikov commented on code in PR #11528: URL: https://github.com/apache/ignite/pull/11528#discussion_r1793476585
########## modules/core/src/main/java/org/apache/ignite/internal/jdbc/thin/JdbcThinConnection.java: ########## @@ -338,6 +351,72 @@ boolean isStream() { return streamState != null; } + /** @return {@code True} if there are open transaction, {@code false} otherwise. */ + public boolean isTxOpen() { + return txCtx != null; + } + + /** @return {@code True} if transactions supported by the server, {@code false} otherwise. */ + boolean txSupportedOnServer() { + return (singleIo != null || !ios.isEmpty()) && defaultIo().isTxAwareQueriesSupported(); + } + + /** @return {@code True} if certain isolation level supported by the server, {@code false} otherwise. */ + boolean isolationLevelSupported(int level) throws SQLException { + if (level == TRANSACTION_NONE) + return true; + + if (level == TRANSACTION_READ_UNCOMMITTED) Review Comment: There are no `TRANSACTION_READ_UNCOMMITTED ` or `TRANSACTION_NONE ` value in `TransactionIsolation` enum -- 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