HHH-12825 CriteriaHQLAlignmentTest.testCountReturnValues fails on databases that don't support tuple distinct counts because it expects wrong exception
This commit is contained in:
parent
2f12913b98
commit
d23fc129cc
|
@ -280,6 +280,15 @@ public class CriteriaHQLAlignmentTest extends QueryTranslatorTestCase {
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (PersistenceException e) {
|
||||||
|
SQLGrammarException cause = assertTyping( SQLGrammarException.class, e.getCause() );
|
||||||
|
if ( ! getDialect().supportsTupleCounts() ) {
|
||||||
|
// expected
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
|
}
|
||||||
finally {
|
finally {
|
||||||
t.rollback();
|
t.rollback();
|
||||||
s.close();
|
s.close();
|
||||||
|
|
Loading…
Reference in New Issue