Skip to content

Commit e4927c8

Browse files
author
Paultagoras
committed
Update ConnectionImpl.java
1 parent 76e757a commit e4927c8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

jdbc-v2/src/main/java/com/clickhouse/jdbc/ConnectionImpl.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,10 @@ public String nativeSQL(String sql) throws SQLException {
120120

121121
@Override
122122
public void setAutoCommit(boolean autoCommit) throws SQLException {
123-
throw new SQLFeatureNotSupportedException("setAutoCommit not supported");
123+
checkOpen();
124+
if (!autoCommit) {
125+
throw new SQLFeatureNotSupportedException("setAutoCommit = false not supported");
126+
}
124127
}
125128

126129
@Override

0 commit comments

Comments
 (0)