File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
hibernate-core/src/test/java/org/hibernate/orm/test/jpa/criteria Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 2020
2121import org .hibernate .community .dialect .InformixDialect ;
2222import org .hibernate .dialect .CockroachDialect ;
23+ import org .hibernate .exception .GenericJDBCException ;
2324import org .hibernate .exception .SQLGrammarException ;
2425import org .hibernate .orm .test .jpa .BaseEntityManagerFunctionalTestCase ;
2526import org .hibernate .orm .test .jpa .metamodel .Address ;
@@ -314,7 +315,8 @@ public void testMissingDialectFunction() {
314315 em .createQuery ( criteria ).getResultList ();
315316 fail ( "Expecting a SQLGrammarException" );
316317 }
317- catch (SQLGrammarException expected ) {
318+ catch (SQLGrammarException | GenericJDBCException expected ) {
319+ // on Sybase, this results in GenericJDBCException
318320 }
319321 } );
320322 }
You can’t perform that action at this time.
0 commit comments