Skip to content

Commit

Permalink
Various code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sebersole committed Feb 20, 2025
1 parent 87c46aa commit 55586f0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import org.hibernate.community.dialect.InformixDialect;
import org.hibernate.dialect.CockroachDialect;
import org.hibernate.exception.GenericJDBCException;
import org.hibernate.exception.SQLGrammarException;
import org.hibernate.orm.test.jpa.BaseEntityManagerFunctionalTestCase;
import org.hibernate.orm.test.jpa.metamodel.Address;
Expand Down Expand Up @@ -314,7 +315,8 @@ public void testMissingDialectFunction() {
em.createQuery( criteria ).getResultList();
fail( "Expecting a SQLGrammarException" );
}
catch (SQLGrammarException expected) {
catch (SQLGrammarException | GenericJDBCException expected) {
// on Sybase, this results in GenericJDBCException
}
} );
}
Expand Down

0 comments on commit 55586f0

Please sign in to comment.