From 2e0e130cbef3fb7849753926719df7e2b9bd9402 Mon Sep 17 00:00:00 2001 From: Strong Liu Date: Thu, 1 Dec 2011 19:45:15 +0800 Subject: [PATCH] HHH-6867 skip org.hibernate.test.criteria.CriteriaQueryTest#testMultiplePropertiesSubquery on DB2 since DB2 doesn't support this tuple sql syntax --- .../java/org/hibernate/test/criteria/CriteriaQueryTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hibernate-core/src/matrix/java/org/hibernate/test/criteria/CriteriaQueryTest.java b/hibernate-core/src/matrix/java/org/hibernate/test/criteria/CriteriaQueryTest.java index 922f7834b5..db7600cb16 100755 --- a/hibernate-core/src/matrix/java/org/hibernate/test/criteria/CriteriaQueryTest.java +++ b/hibernate-core/src/matrix/java/org/hibernate/test/criteria/CriteriaQueryTest.java @@ -1783,14 +1783,14 @@ public class CriteriaQueryTest extends BaseCoreFunctionalTestCase { session = openSession(); tx = session.beginTransaction(); - if ( getDialect().supportsRowValueConstructorSyntax() ) { - sizeQuery = DetachedCriteria.forClass( Man.class ).setProjection( + sizeQuery = DetachedCriteria.forClass( Man.class ).setProjection( Projections.projectionList().add( Projections.property( "weight" ) ) .add( Projections.property( "height" ) ) ) .add( Restrictions.ne( "name", "Lukasz" ) ); + if ( getDialect().supportsRowValueConstructorSyntax() ) { result = session.createCriteria( Woman.class ) .add( Subqueries.propertiesNotEq( new String[] { "weight", "height" }, sizeQuery ) ) .list();