#2089 - Postgres - Use NO KEY with FOR UPDATE clauses with Postgres

This commit is contained in:
rob bygrave
2020-10-22 16:37:18 +13:00
parent 0abcc9e06e
commit c044bc52f7
3 changed files with 100 additions and 5 deletions
@@ -116,11 +116,11 @@ public class PostgresPlatform extends DatabasePlatform {
protected String withForUpdate(String sql, Query.ForUpdate forUpdateMode) {
switch (forUpdateMode) {
case SKIPLOCKED:
return sql + " for update skip locked";
return sql + " for no key update skip locked";
case NOWAIT:
return sql + " for update nowait";
return sql + " for no key update nowait";
default:
return sql + " for update";
return sql + " for no key update";
}
}