We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36b8823 commit d96308dCopy full SHA for d96308d
clickhouse-jdbc/src/main/java/com/clickhouse/jdbc/internal/ClickHouseStatementImpl.java
@@ -452,7 +452,7 @@ protected ClickHouseResultSet newEmptyResultSet() throws SQLException {
452
}
453
454
protected ResultSet updateResult(ClickHouseSqlStatement stmt, ClickHouseResponse response) throws SQLException {
455
- if (stmt.isQuery()) {
+ if (stmt.isQuery() || !response.getColumns().isEmpty()) {
456
currentUpdateCount = -1L;
457
currentResult = new ClickHouseResultSet(stmt.getDatabaseOrDefault(getConnection().getCurrentDatabase()),
458
stmt.getTable(), this, response);
0 commit comments