Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2016-12-15 06:44:34 +0000
committerEike Stepper2016-12-15 06:44:34 +0000
commit8e4f64b0e3a98c0b702d7ae927e45cdd0c369810 (patch)
tree32d0a345250d735b217b8501dd0817dae9d40835 /plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/spi/db
parente06ec8c3a7c6a8cfa334752f3435264d5dc6dd7c (diff)
downloadcdo-8e4f64b0e3a98c0b702d7ae927e45cdd0c369810.tar.gz
cdo-8e4f64b0e3a98c0b702d7ae927e45cdd0c369810.tar.xz
cdo-8e4f64b0e3a98c0b702d7ae927e45cdd0c369810.zip
[509256] [DB] Indexes can't be created/modified for existing tables
https://bugs.eclipse.org/bugs/show_bug.cgi?id=509256
Diffstat (limited to 'plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/spi/db')
-rw-r--r--plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/spi/db/DBAdapter.java19
1 files changed, 11 insertions, 8 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 8097c26eb7..6b29513e15 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
@@ -395,7 +395,7 @@ public abstract class DBAdapter implements IDBAdapter
break;
default:
- throw new IllegalStateException("Illegal change kind: " + changeKind);
+ throw illegalChangeKind(changeKind);
}
}
@@ -441,8 +441,16 @@ public abstract class DBAdapter implements IDBAdapter
break;
default:
- throw new IllegalStateException("Illegal change kind: " + changeKind);
+ throw illegalChangeKind(changeKind);
}
+
+ stopRecursion();
+ }
+
+ @Override
+ public void visit(IDBFieldDelta delta)
+ {
+ stopRecursion();
}
};
@@ -502,14 +510,9 @@ public abstract class DBAdapter implements IDBAdapter
break;
default:
- throw new IllegalStateException("Illegal change kind: " + changeKind);
+ throw IDBDeltaVisitor.Default.illegalChangeKind(changeKind);
}
}
-
- if (delta.getIndexDeltaCount() != 0)
- {
- throw new UnsupportedOperationException("Not yet implemented");
- }
}
/**

Back to the top