Skip to content

Commit 0d2defc

Browse files
committed
fixed returning correct information about execution result and resultset
1 parent e50ce10 commit 0d2defc

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,16 @@ public int executeUpdate() throws SQLException {
7878
return (int) this.executeLargeUpdate();
7979
}
8080

81+
@Override
82+
public boolean getMoreResults() throws SQLException {
83+
return false; // no result sets
84+
}
85+
86+
@Override
87+
public ResultSet getResultSet() throws SQLException {
88+
return null; // no result set
89+
}
90+
8191
@Override
8292
public long executeLargeUpdate() throws SQLException {
8393
checkClosed();
@@ -268,7 +278,7 @@ public void clearParameters() throws SQLException {
268278
@Override
269279
public boolean execute() throws SQLException {
270280
executeLargeUpdate();
271-
return true;
281+
return false; // no result set
272282
}
273283

274284
@Override

0 commit comments

Comments
 (0)