Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2013-05-15 02:48:54 -0400
committerEike Stepper2013-05-15 02:48:54 -0400
commite969733a0be1251691de0f55ce1e80471e9c8334 (patch)
tree680f1062b935e5da6a7a244e28ab0d3237c083c3
parenta18f0f77cf1449305352a13be1674d83e9181097 (diff)
downloadcdo-e969733a0be1251691de0f55ce1e80471e9c8334.tar.gz
cdo-e969733a0be1251691de0f55ce1e80471e9c8334.tar.xz
cdo-e969733a0be1251691de0f55ce1e80471e9c8334.zip
[405131] [DB] Launching Servers with HSQLDB or Derby back-ends lead to
issue in CDO 4.2 https://bugs.eclipse.org/bugs/show_bug.cgi?id=405131
-rw-r--r--plugins/org.eclipse.net4j.db.hsqldb/src/org/eclipse/net4j/db/hsqldb/HSQLDBAdapter.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/plugins/org.eclipse.net4j.db.hsqldb/src/org/eclipse/net4j/db/hsqldb/HSQLDBAdapter.java b/plugins/org.eclipse.net4j.db.hsqldb/src/org/eclipse/net4j/db/hsqldb/HSQLDBAdapter.java
index bb2aaa0b85..7cf20196c8 100644
--- a/plugins/org.eclipse.net4j.db.hsqldb/src/org/eclipse/net4j/db/hsqldb/HSQLDBAdapter.java
+++ b/plugins/org.eclipse.net4j.db.hsqldb/src/org/eclipse/net4j/db/hsqldb/HSQLDBAdapter.java
@@ -15,6 +15,8 @@ import org.eclipse.net4j.db.IDBAdapter;
import org.eclipse.net4j.db.ddl.IDBField;
import org.eclipse.net4j.spi.db.DBAdapter;
+import java.sql.SQLException;
+
/**
* A {@link IDBAdapter DB adapter} for <a href="http://hsqldb.org/">HyperSQL</a> databases.
*
@@ -82,4 +84,18 @@ public class HSQLDBAdapter extends DBAdapter
{
return getSQL92ReservedWords();
}
+
+ @Override
+ public boolean isTableNotFoundException(SQLException ex)
+ {
+ String sqlState = ex.getSQLState();
+ return "42501".equals(sqlState);
+ }
+
+ @Override
+ public boolean isColumnNotFoundException(SQLException ex)
+ {
+ String sqlState = ex.getSQLState();
+ return "42501".equals(sqlState);
+ }
}

Back to the top