summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEgidijus Vaishnora2011-01-25 10:10:47 (EST)
committerEgidijus Vaishnora2011-01-25 10:10:47 (EST)
commitd97921be219dc278f8efa47b5e02787cbe7b534f (patch)
tree0784292990e9ff2070a613a06ef30654a70eecb6
parent2db6ce09ee29f577e3ae66ef64fd2327c0b4a506 (diff)
downloadcdo-d97921be219dc278f8efa47b5e02787cbe7b534f.zip
cdo-d97921be219dc278f8efa47b5e02787cbe7b534f.tar.gz
cdo-d97921be219dc278f8efa47b5e02787cbe7b534f.tar.bz2
[334359] bug fix https://bugs.eclipse.org/bugs/show_bug.cgi?id=334359
-rw-r--r--plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/spi/db/DBAdapter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/spi/db/DBAdapter.java b/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/spi/db/DBAdapter.java
index a19f5ca..4c17128 100644
--- a/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/spi/db/DBAdapter.java
+++ b/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/spi/db/DBAdapter.java
@@ -284,7 +284,7 @@ public abstract class DBAdapter implements IDBAdapter
IDBTable table = index.getTable();
StringBuilder builder = new StringBuilder();
builder.append("CREATE "); //$NON-NLS-1$
- if (index.getType() == IDBIndex.Type.UNIQUE)
+ if (index.getType() == IDBIndex.Type.UNIQUE || index.getType() == IDBIndex.Type.PRIMARY_KEY)
{
builder.append("UNIQUE "); //$NON-NLS-1$
}