Updated APIv5 Query API (markdown)

Risto Lahtela 2019-07-28 17:23:00 +03:00
parent c7b20090fd
commit 903d2cd458
1 changed files with 1 additions and 1 deletions

@ -110,7 +110,7 @@ If you would like to wait for the statement to execute you can call `Future#get(
queryService.execute(update, statement -> {
statement.setInt(1, version);
statement.setString(2, uuid.toString());
updated.set(statement.execute());
updated.set(statement.executeUpdate() > 0);
}).get(); // Wait
if (!updated.get()) {
queryService.execute(insert, statement -> {