Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2012-10-31 10:32:05 -0400
committerEike Stepper2012-10-31 10:32:05 -0400
commitb5dea0f67edbe7132dfa65081747f9d08b71ec5a (patch)
treecd10fd7d94302b713178ef943f443352bed9d716
parentccd00426290e441a0bbfc367ee5558acdd76338d (diff)
downloadcdo-b5dea0f67edbe7132dfa65081747f9d08b71ec5a.tar.gz
cdo-b5dea0f67edbe7132dfa65081747f9d08b71ec5a.tar.xz
cdo-b5dea0f67edbe7132dfa65081747f9d08b71ec5a.zip
[393111] [DB] Oracle SQL doesn't allow "AS" keyword for table alias drops/I20121031-1041
https://bugs.eclipse.org/bugs/show_bug.cgi?id=393111
-rw-r--r--plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/mapping/horizontal/AbstractHorizontalMappingStrategy.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/mapping/horizontal/AbstractHorizontalMappingStrategy.java b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/mapping/horizontal/AbstractHorizontalMappingStrategy.java
index 5c053c6c80..b9bfeed3fa 100644
--- a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/mapping/horizontal/AbstractHorizontalMappingStrategy.java
+++ b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/mapping/horizontal/AbstractHorizontalMappingStrategy.java
@@ -451,10 +451,8 @@ public abstract class AbstractHorizontalMappingStrategy extends AbstractMappingS
final IIDHandler idHandler = getStore().getIDHandler();
final CDOID[] min = { idHandler.getMaxCDOID() };
- String dbName = getStore().getRepository().getName();
-
- final String prefix = "SELECT MIN(\"t\"." + CDODBSchema.ATTRIBUTES_ID + ") FROM " + dbName + "."
- + CDODBSchema.CDO_OBJECTS + " \"o\", " + dbName + ".";
+ final String prefix = "SELECT MIN(\"t\"." + CDODBSchema.ATTRIBUTES_ID + ") FROM " + CDODBSchema.CDO_OBJECTS
+ + " \"o\", ";
final String suffix = " \"t\" WHERE \"t\"." + CDODBSchema.ATTRIBUTES_BRANCH + "<0 AND \"t\"."
+ CDODBSchema.ATTRIBUTES_ID + "=\"o\"." + CDODBSchema.ATTRIBUTES_ID + " AND \"t\"."

Back to the top