From 084ee33303bbf26546559f07ec3670213cf1388e Mon Sep 17 00:00:00 2001 From: "Troeger, Martin (K-SIPB-1/3)" Date: Wed, 8 Mar 2017 15:54:23 +0100 Subject: [PATCH] HHH-11557 - DB2 gets confused with numerical parameters in nullif function DB2Dialect --- .../src/main/java/org/hibernate/dialect/DB2Dialect.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/DB2Dialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/DB2Dialect.java index 6564635b39..cf0a883e4a 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/DB2Dialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/DB2Dialect.java @@ -348,7 +348,7 @@ public class DB2Dialect extends Dialect { default: literal = "0"; } - return "nullif(" + literal + ',' + literal + ')'; + return "nullif(" + literal + ", " + literal + ')'; } @Override