Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2012-11-02 03:49:33 +0000
committerEike Stepper2012-11-02 03:49:33 +0000
commit7236e96ba40506d6bf09e27517f8edf079bcadd0 (patch)
tree68c7a01defb916a878c3db0221839375852ac45c
parent52a50c24ea0d377f0a0aae4186a4dfe4a8b488cd (diff)
downloadcdo-7236e96ba40506d6bf09e27517f8edf079bcadd0.tar.gz
cdo-7236e96ba40506d6bf09e27517f8edf079bcadd0.tar.xz
cdo-7236e96ba40506d6bf09e27517f8edf079bcadd0.zip
[344669] [DB] Crash detection fails when using Oracle JDBC
https://bugs.eclipse.org/bugs/show_bug.cgi?id=344669
-rw-r--r--plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/mapping/horizontal/HorizontalBranchingMappingStrategyWithRanges.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/mapping/horizontal/HorizontalBranchingMappingStrategyWithRanges.java b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/mapping/horizontal/HorizontalBranchingMappingStrategyWithRanges.java
index 7310f2bea5..ab527f2dbd 100644
--- a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/mapping/horizontal/HorizontalBranchingMappingStrategyWithRanges.java
+++ b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/mapping/horizontal/HorizontalBranchingMappingStrategyWithRanges.java
@@ -346,7 +346,7 @@ public class HorizontalBranchingMappingStrategyWithRanges extends HorizontalBran
public void handleRow(ExtendedDataInput in, Connection connection, IDBField[] fields, Object[] values)
throws SQLException, IOException
{
- int versionAdded = (Integer)values[2];
+ int versionAdded = DBUtil.asInt(values[2]);
if (versionAdded == CDOBranchVersion.FIRST_VERSION)
{
return;
@@ -365,8 +365,8 @@ public class HorizontalBranchingMappingStrategyWithRanges extends HorizontalBran
}
Object sourceID = values[0];
- int branch = (Integer)values[1];
- int index = (Integer)values[4];
+ int branch = DBUtil.asInt(values[1]);
+ int index = DBUtil.asInt(values[4]);
stmt.setInt(1, versionAdded);
idHandler.setCDOIDRaw(stmt, 2, sourceID);

Back to the top