Permalink
Browse files

HHH-6452 PostgreSQL Dialect does not fully implement NOWAIT locking

  • Loading branch information...
1 parent b040866 commit 9f7f572490e4d184383486f4f18eccc7748d05bc brmeyer committed Sep 17, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 hibernate-core/src/main/java/org/hibernate/dialect/PostgreSQL81Dialect.java
@@ -462,4 +462,14 @@ public String getReadLockString(int timeout) {
public boolean supportsRowValueConstructorSyntax() {
return true;
}
+
+ @Override
+ public String getForUpdateNowaitString() {
+ return getForUpdateString() + " nowait ";
+ }
+
+ @Override
+ public String getForUpdateNowaitString(String aliases) {
+ return getForUpdateString(aliases) + " nowait ";
+ }
}

0 comments on commit 9f7f572

Please sign in to comment.