HHH-12825 CriteriaHQLAlignmentTest.testCountReturnValues fails on databases that don't support tuple distinct counts because it expects wrong exception

This commit is contained in:
Martin Simka 2018-07-18 15:45:17 +02:00 committed by Guillaume Smet
parent 3f468facd0
commit 8df12b7d0a
1 changed files with 9 additions and 0 deletions

View File

@ -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();