Fixed Postgres error handling after reinstall

This commit is contained in:
Lukas Eder 2012-12-20 15:42:14 +01:00
parent c2c5f82b1a
commit 3fe9e89293

View File

@ -35,6 +35,7 @@
*/
package org.jooq.test;
import static java.util.Arrays.asList;
import static junit.framework.Assert.assertEquals;
import static org.jooq.SQLDialect.CUBRID;
import static org.jooq.SQLDialect.FIREBIRD;
@ -314,7 +315,7 @@ public abstract class jOOQAbstractTest<
// There is no DROP FUNCTION IF EXISTS statement in Postgres
else if (e.getClass().getName().startsWith("org.postgresql")) {
if ("42883".equals(((PSQLException) e).getSQLState())) {
if (asList("42704", "42883", "42P01").contains(((PSQLException) e).getSQLState())) {
continue;
}
}