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

This commit is contained in:
rob bygrave committed 2020-10-22 16:37:18 +13:00
1 parent 0abcc9e06e
commit c044bc52f7
3 files changed
+100 -5

No files matched your search

@@ -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";
}
}