Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2013-05-16 05:05:56 -0400
committerEike Stepper2013-05-16 05:05:56 -0400
commitfbab9e941e0b643818f79f4937d516a2ad1eb255 (patch)
treed39000db733f6e10fadb9a86787f8bdd04c0507e
parentc6acc2e21bcfe559847f5b64abcbf94f3ea4dbbb (diff)
downloadcdo-fbab9e941e0b643818f79f4937d516a2ad1eb255.tar.gz
cdo-fbab9e941e0b643818f79f4937d516a2ad1eb255.tar.xz
cdo-fbab9e941e0b643818f79f4937d516a2ad1eb255.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.derby/src/org/eclipse/net4j/db/derby/DerbyAdapter.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/org.eclipse.net4j.db.derby/src/org/eclipse/net4j/db/derby/DerbyAdapter.java b/plugins/org.eclipse.net4j.db.derby/src/org/eclipse/net4j/db/derby/DerbyAdapter.java
index 3965019299..0326812223 100644
--- a/plugins/org.eclipse.net4j.db.derby/src/org/eclipse/net4j/db/derby/DerbyAdapter.java
+++ b/plugins/org.eclipse.net4j.db.derby/src/org/eclipse/net4j/db/derby/DerbyAdapter.java
@@ -97,7 +97,7 @@ public abstract class DerbyAdapter extends DBAdapter
// The statement was aborted because it would have caused a duplicate key value in a unique or primary key
// constraint or unique index identified by '<value>' defined on '<value>'
String sqlState = ex.getSQLState();
- return "23505".equals(sqlState);
+ return "23505".equals(sqlState) || super.isDuplicateKeyException(ex);
}
@Override
@@ -105,7 +105,7 @@ public abstract class DerbyAdapter extends DBAdapter
{
// Table/View '<objectName>' does not exist
String sqlState = ex.getSQLState();
- return "42X05".equals(sqlState);
+ return "42X05".equals(sqlState) || super.isTableNotFoundException(ex);
}
@Override
@@ -115,6 +115,6 @@ public abstract class DerbyAdapter extends DBAdapter
// outside the scope of the join specification or appears in a HAVING clause and is not in the GROUP BY list. If
// this is a CREATE or ALTER TABLE statement then '<columnName>' is not a column in the target table.
String sqlState = ex.getSQLState();
- return "42X04".equals(sqlState);
+ return "42X04".equals(sqlState) || super.isColumnNotFoundException(ex);
}
}

Back to the top