summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2008-05-21 12:01:07 (EDT)
committerEike Stepper2008-05-21 12:01:07 (EDT)
commit31fe922409ba69ac620e982e756a1f499b95c23d (patch)
tree91b31a10cc66cf23197cdba33de008a1927db56e
parent5f791fab105d97d7c90af51fa1118141340254cc (diff)
downloadcdo-31fe922409ba69ac620e982e756a1f499b95c23d.zip
cdo-31fe922409ba69ac620e982e756a1f499b95c23d.tar.gz
cdo-31fe922409ba69ac620e982e756a1f499b95c23d.tar.bz2
[225308] CDOID is not translated to correct SQL query
https://bugs.eclipse.org/bugs/show_bug.cgi?id=225308
-rw-r--r--plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/MappingStrategy.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/MappingStrategy.java b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/MappingStrategy.java
index 80b5223..c8d8c92 100644
--- a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/MappingStrategy.java
+++ b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/MappingStrategy.java
@@ -280,7 +280,8 @@ public abstract class MappingStrategy extends Lifecycle implements IMappingStrat
IDBTable resourceTable = getResourceTable();
IDBField selectField = getResourcePathField();
IDBField whereField = getResourceIDField();
- return (String)readResourceInfo(storeReader, resourceTable, selectField, whereField, id);
+ Object whereValue = CDOIDUtil.getLong(id);
+ return (String)readResourceInfo(storeReader, resourceTable, selectField, whereField, whereValue);
}
protected Object readResourceInfo(IDBStoreReader storeReader, IDBTable resourceTable, IDBField selectField,
@@ -301,6 +302,7 @@ public abstract class MappingStrategy extends Lifecycle implements IMappingStrat
{
TRACER.trace(sql);
}
+
ResultSet resultSet = null;
try