Hello, I have compiled locally and I can confirm that the issue is fixed in my minimal sample projects for DB2Dialect and DB2iDialect. Good job, thank you very much ! However, in my production project I run into this:
java.lang.StackOverflowError: null
at java.base/jdk.internal.misc.Unsafe.allocateUninitializedArray(Unsafe.java:1375)
at java.base/java.lang.StringConcatHelper.newArray(StringConcatHelper.java:494)
at java.base/java.lang.StringConcatHelper.newArrayWithSuffix(StringConcatHelper.java:475)
at org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.emulateFetchOffsetWithWindowFunctions(AbstractSqlAstTranslator.java:2943)
at org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.emulateFetchOffsetWithWindowFunctions(AbstractSqlAstTranslator.java:2911)
at org.hibernate.dialect.DB2SqlAstTranslator.visitQuerySpec(DB2SqlAstTranslator.java:170)
at org.hibernate.sql.ast.tree.select.QuerySpec.accept(QuerySpec.java:129)
at org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.emulateFetchOffsetWithWindowFunctions(AbstractSqlAstTranslator.java:2975)
at org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.emulateFetchOffsetWithWindowFunctions(AbstractSqlAstTranslator.java:2911)
at org.hibernate.dialect.DB2SqlAstTranslator.visitQuerySpec(DB2SqlAstTranslator.java:170)
at org.hibernate.sql.ast.tree.select.QuerySpec.accept(QuerySpec.java:129)
at org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.emulateFetchOffsetWithWindowFunctions(AbstractSqlAstTranslator.java:2975)
at org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.emulateFetchOffsetWithWindowFunctions(AbstractSqlAstTranslator.java:2911)
at org.hibernate.dialect.DB2SqlAstTranslator.visitQuerySpec(DB2SqlAstTranslator.java:170)
at org.hibernate.sql.ast.tree.select.QuerySpec.accept(QuerySpec.java:129)
This seems related to the fix. Could this be a regression ? |