You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Josh Rosen (JIRA)" <ji...@apache.org> on 2017/05/28 18:55:04 UTC
[jira] [Commented] (HIVE-11293) HiveConnection.setAutoCommit(true)
throws exception
[ https://issues.apache.org/jira/browse/HIVE-11293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16027910#comment-16027910 ]
Josh Rosen commented on HIVE-11293:
-----------------------------------
+1 on backporting this to branch-1 as well; it's impacting many users there, as you can see from https://youtrack.jetbrains.com/issue/DBE-3115
> HiveConnection.setAutoCommit(true) throws exception
> ---------------------------------------------------
>
> Key: HIVE-11293
> URL: https://issues.apache.org/jira/browse/HIVE-11293
> Project: Hive
> Issue Type: Bug
> Components: JDBC
> Affects Versions: 2.0.0
> Reporter: Andriy Shumylo
> Assignee: Michał Węgrzyn
> Priority: Minor
> Fix For: 2.0.0
>
> Attachments: HIVE-11293.2.patch, HIVE-11293.patch
>
>
> Effectively autoCommit is always true for HiveConnection, however setAutoCommit(true) throws exception, causing problems in existing JDBC code.
> Should be
> {code}
> @Override
> public void setAutoCommit(boolean autoCommit) throws SQLException {
> if (!autoCommit) {
> throw new SQLException("disabling autocommit is not supported");
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)