Skip to content

Commit ad3863d

Browse files
committed
fixed the original check
1 parent d358ea0 commit ad3863d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clickhouse-jdbc/src/main/java/com/clickhouse/jdbc/internal/ClickHouseStatementImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ protected ClickHouseResultSet newEmptyResultSet() throws SQLException {
452452
}
453453

454454
protected ResultSet updateResult(ClickHouseSqlStatement stmt, ClickHouseResponse response) throws SQLException {
455-
if (stmt.isQuery() || !response.getColumns().isEmpty()) {
455+
if (stmt.isQuery() || (!stmt.isRecognized() && !response.getColumns().isEmpty())) {
456456
currentUpdateCount = -1L;
457457
currentResult = new ClickHouseResultSet(stmt.getDatabaseOrDefault(getConnection().getCurrentDatabase()),
458458
stmt.getTable(), this, response);

0 commit comments

Comments
 (0)