Updated APIv5 Query API (markdown)
parent
c7b20090fd
commit
903d2cd458
|
@ -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 -> {
|
||||
|
|
Loading…
Reference in New Issue