Fix issues after merge main branch

This commit is contained in:
Andrea Boriero 2021-09-17 15:34:46 +02:00
parent 6519b3bfcd
commit 9dcca5f213
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,7 @@ import javax.persistence.TemporalType;
import org.hibernate.LockMode;
import org.hibernate.LockOptions;
import org.hibernate.PessimisticLockException;
import org.hibernate.QueryTimeoutException;
import org.hibernate.boot.model.TypeContributions;
import org.hibernate.cfg.Environment;
import org.hibernate.dialect.function.CommonFunctionFactory;
@ -611,6 +612,8 @@ public class PostgreSQLDialect extends Dialect {
case "55P03":
// LOCK NOT AVAILABLE
return new PessimisticLockException(message, sqlException, sql);
case "57014":
return new QueryTimeoutException( message, sqlException, sql );
default:
// returning null allows other delegates to operate
return null;