From 3f468facd0d54f5fe0a919de396c11d20d3951cf Mon Sep 17 00:00:00 2001 From: Martin Simka Date: Wed, 18 Jul 2018 14:57:00 +0200 Subject: [PATCH] HHH-12824 ASTParserLoadingTest.testComponentNullnessChecks fails with DB2 because it uses legacy-style query parameter --- .../test/java/org/hibernate/test/hql/ASTParserLoadingTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/test/java/org/hibernate/test/hql/ASTParserLoadingTest.java b/hibernate-core/src/test/java/org/hibernate/test/hql/ASTParserLoadingTest.java index fbda64e438..e13aafa0bc 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/hql/ASTParserLoadingTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/hql/ASTParserLoadingTest.java @@ -770,7 +770,7 @@ public class ASTParserLoadingTest extends BaseCoreFunctionalTestCase { assertEquals( 3, results.size() ); String query = ( getDialect() instanceof DB2Dialect || getDialect() instanceof HSQLDialect ) ? - "from Human where cast(? as string) is null" : + "from Human where cast(?1 as string) is null" : "from Human where ?1 is null" ; if ( getDialect() instanceof DerbyDialect ) {