Skip to content

Commit 0f85112

Browse files
committed
Various code cleanup
1 parent 846c648 commit 0f85112

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/jpa/criteria/QueryBuilderTest.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
import org.hibernate.community.dialect.InformixDialect;
2222
import org.hibernate.dialect.CockroachDialect;
23+
import org.hibernate.exception.GenericJDBCException;
2324
import org.hibernate.exception.SQLGrammarException;
2425
import org.hibernate.orm.test.jpa.BaseEntityManagerFunctionalTestCase;
2526
import 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
}

0 commit comments

Comments
 (0)