Skip to main content
summaryrefslogtreecommitdiffstats
path: root/jpa
diff options
context:
space:
mode:
authorbvosburgh2010-04-29 18:57:05 +0000
committerbvosburgh2010-04-29 18:57:05 +0000
commit9b313ab825c92434cdd1b9cf12c8537e7bd4c77d (patch)
tree733b7ef084bc39637ca1fff48e9f587c888646a9 /jpa
parentb11e775a1a528b27b19d3d6f4c391601f89faded (diff)
downloadwebtools.dali-9b313ab825c92434cdd1b9cf12c8537e7bd4c77d.tar.gz
webtools.dali-9b313ab825c92434cdd1b9cf12c8537e7bd4c77d.tar.xz
webtools.dali-9b313ab825c92434cdd1b9cf12c8537e7bd4c77d.zip
[308947] hack to support old IBM DTP/RDB extension for Oracle
Diffstat (limited to 'jpa')
-rw-r--r--jpa/plugins/org.eclipse.jpt.db/src/org/eclipse/jpt/db/internal/vendor/FauxCatalogStrategy.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.db/src/org/eclipse/jpt/db/internal/vendor/FauxCatalogStrategy.java b/jpa/plugins/org.eclipse.jpt.db/src/org/eclipse/jpt/db/internal/vendor/FauxCatalogStrategy.java
index b5b5b4218d..b269cf51b1 100644
--- a/jpa/plugins/org.eclipse.jpt.db/src/org/eclipse/jpt/db/internal/vendor/FauxCatalogStrategy.java
+++ b/jpa/plugins/org.eclipse.jpt.db/src/org/eclipse/jpt/db/internal/vendor/FauxCatalogStrategy.java
@@ -52,6 +52,14 @@ class FauxCatalogStrategy
@SuppressWarnings("unchecked")
public List<Schema> getSchemas(Database database) {
+ // 308947 - hack to support old IBM DTP/RDB extension for Oracle
+ List<Catalog> catalogs = database.getCatalogs();
+ // if there are no catalogs, the database must hold the schemata directly
+ if ((catalogs == null) || catalogs.isEmpty()) {
+ return database.getSchemas();
+ }
+
+ // normal logic:
return this.getFauxCatalog(database.getCatalogs()).getSchemas();
}

Back to the top