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