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
3f468facd0
commit
8df12b7d0a
|
@ -280,6 +280,15 @@ public class CriteriaHQLAlignmentTest extends QueryTranslatorTestCase {
|
|||
throw ex;
|
||||
}
|
||||
}
|
||||
catch (PersistenceException e) {
|
||||
SQLGrammarException cause = assertTyping( SQLGrammarException.class, e.getCause() );
|
||||
if ( ! getDialect().supportsTupleCounts() ) {
|
||||
// expected
|
||||
}
|
||||
else {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
finally {
|
||||
t.rollback();
|
||||
s.close();
|
||||
|
|
Loading…
Reference in New Issue