Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -121,21 +121,29 @@ public ResultSet getResultSet() throws SQLException {
@Override
public int getUpdateCount() throws SQLException {
if (executionResult == null) {
throw new LibSqlException("No update count before statement execute");
return -1;
}
if (executionResult.getColumns() != null && !executionResult.getColumns().isEmpty()) {
return -1;
}
return (int) executionResult.getUpdateCount();
}

@Override
public long getLargeUpdateCount() throws SQLException {
if (executionResult == null) {
throw new LibSqlException("No update count before statement execute");
return -1;
}
if (executionResult.getColumns() != null && !executionResult.getColumns().isEmpty()) {
return -1;
}
return executionResult.getUpdateCount();
}

@Override
public boolean getMoreResults() throws SQLException {
executionResult = null;
resultSet = null;
return false;
}

Expand All @@ -151,6 +159,8 @@ public int getFetchDirection() throws SQLException {

@Override
public boolean getMoreResults(int current) throws SQLException {
executionResult = null;
resultSet = null;
return false;
}
@Override
Expand Down