summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2008-03-04 15:23:28 (EST)
committerEike Stepper2008-03-04 15:23:28 (EST)
commitf564307ad6a51dd738b35ab7f98b423ce01d45bb (patch)
tree84ddaa9673bf5e29cf8e01230ba91eb6379a0453
parent15f38c892f094349a0332c97a402acbcc32b6788 (diff)
downloadcdo-f564307ad6a51dd738b35ab7f98b423ce01d45bb.zip
cdo-f564307ad6a51dd738b35ab7f98b423ce01d45bb.tar.gz
cdo-f564307ad6a51dd738b35ab7f98b423ce01d45bb.tar.bz2
[221149] Bug in Enum support
https://bugs.eclipse.org/bugs/show_bug.cgi?id=221149
-rw-r--r--plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/ClassMapping.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/ClassMapping.java b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/ClassMapping.java
index 315f537..2074131 100644
--- a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/ClassMapping.java
+++ b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/ClassMapping.java
@@ -243,7 +243,8 @@ public abstract class ClassMapping implements IClassMapping
protected int getDBLength(CDOFeature cdoFeature)
{
// Derby: The maximum length for a VARCHAR string is 32,672 characters.
- return cdoFeature.getType() == CDOType.STRING ? 32672 : IDBField.DEFAULT;
+ CDOType type = cdoFeature.getType();
+ return type == CDOType.STRING || type == CDOType.CUSTOM ? 32672 : IDBField.DEFAULT;
}
protected IDBAdapter getDBAdapter()
@@ -417,7 +418,7 @@ public abstract class ClassMapping implements IClassMapping
{
return new AttributeMapping.AMShort(this, feature);
}
- else if (type == CDOType.STRING)
+ else if (type == CDOType.STRING || type == CDOType.CUSTOM)
{
return new AttributeMapping.AMString(this, feature);
}