Skip to content

Commit

Permalink
fix update= request in servlet used by RPT
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonBin committed Jun 14, 2023
1 parent a1b0582 commit 6e8fd33
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ public void processStmtAsync(AsyncResponse response, String queryStr, String upd
throw new RuntimeException("No query/update statement provided");
}

if (queryStr != null && updateStr != null) {
if (queryStr != null && updateStr != null && !updateStr.equals(queryStr)) {
throw new RuntimeException(String.format("Both 'query' and 'update' statement strings provided in a single request; query=%s update=%s", queryStr, updateStr));
}

Expand Down

0 comments on commit 6e8fd33

Please sign in to comment.