HHH-6867 skip org.hibernate.test.criteria.CriteriaQueryTest#testMultiplePropertiesSubquery on DB2 since DB2 doesn't support this tuple sql syntax

This commit is contained in:
Strong Liu 2011-12-01 19:45:15 +08:00
parent 3c3a74e010
commit 2e0e130cbe
1 changed files with 2 additions and 2 deletions

View File

@ -1783,7 +1783,6 @@ public class CriteriaQueryTest extends BaseCoreFunctionalTestCase {
session = openSession();
tx = session.beginTransaction();
if ( getDialect().supportsRowValueConstructorSyntax() ) {
sizeQuery = DetachedCriteria.forClass( Man.class ).setProjection(
Projections.projectionList().add( Projections.property( "weight" ) )
.add( Projections.property( "height" ) )
@ -1791,6 +1790,7 @@ public class CriteriaQueryTest extends BaseCoreFunctionalTestCase {
.add(
Restrictions.ne( "name", "Lukasz" )
);
if ( getDialect().supportsRowValueConstructorSyntax() ) {
result = session.createCriteria( Woman.class )
.add( Subqueries.propertiesNotEq( new String[] { "weight", "height" }, sizeQuery ) )
.list();