From 9f7f572490e4d184383486f4f18eccc7748d05bc Mon Sep 17 00:00:00 2001 From: brmeyer Date: Mon, 17 Sep 2012 03:54:36 -0400 Subject: [PATCH] HHH-6452 PostgreSQL Dialect does not fully implement NOWAIT locking --- .../org/hibernate/dialect/PostgreSQL81Dialect.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/PostgreSQL81Dialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/PostgreSQL81Dialect.java index a99661ee91..716f7b9fd2 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/PostgreSQL81Dialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/PostgreSQL81Dialect.java @@ -462,4 +462,14 @@ public class PostgreSQL81Dialect extends Dialect { public boolean supportsRowValueConstructorSyntax() { return true; } + + @Override + public String getForUpdateNowaitString() { + return getForUpdateString() + " nowait "; + } + + @Override + public String getForUpdateNowaitString(String aliases) { + return getForUpdateString(aliases) + " nowait "; + } }