HHH-18367 Fix for Informix sum on case expression error

This commit is contained in:
Vladimír Kuruc 2024-07-10 09:05:15 +02:00 committed by Christian Beikov
parent cda4b1ca37
commit d341240b1a
1 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,7 @@ import org.hibernate.query.sqm.sql.SqmTranslatorFactory;
import org.hibernate.query.sqm.sql.StandardSqmTranslatorFactory;
import org.hibernate.query.sqm.tree.select.SqmSelectStatement;
import org.hibernate.service.ServiceRegistry;
import org.hibernate.sql.ast.SqlAstNodeRenderingMode;
import org.hibernate.sql.ast.SqlAstTranslator;
import org.hibernate.sql.ast.SqlAstTranslatorFactory;
import org.hibernate.sql.ast.spi.SqlAppender;
@ -305,6 +306,7 @@ public class InformixDialect extends Dialect {
super.initializeFunctionRegistry(functionContributions);
CommonFunctionFactory functionFactory = new CommonFunctionFactory(functionContributions);
functionFactory.aggregates( this, SqlAstNodeRenderingMode.NO_PLAIN_PARAMETER );
functionFactory.instr();
functionFactory.substr();
functionFactory.substringFromFor();