Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortle2007-06-13 12:53:12 -0400
committertle2007-06-13 12:53:12 -0400
commit48a68629f86ace46dc95312180686e6069ef1161 (patch)
tree73526ec04ca8641c9f5a5cc2d98f154bc0dcbd0a
parentf237866fc23983fd59e52146f1e24ce334835fee (diff)
downloadwebtools.dali-48a68629f86ace46dc95312180686e6069ef1161.tar.gz
webtools.dali-48a68629f86ace46dc95312180686e6069ef1161.tar.xz
webtools.dali-48a68629f86ace46dc95312180686e6069ef1161.zip
Patch applied [Bug 188565] Database Connection Wizard does not show Schema
-rw-r--r--jpa/plugins/org.eclipse.jpt.db/src/org/eclipse/jpt/db/internal/DTPDatabaseWrapper.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.db/src/org/eclipse/jpt/db/internal/DTPDatabaseWrapper.java b/jpa/plugins/org.eclipse.jpt.db/src/org/eclipse/jpt/db/internal/DTPDatabaseWrapper.java
index 4fd0f20a79..d8b1dadb9e 100644
--- a/jpa/plugins/org.eclipse.jpt.db/src/org/eclipse/jpt/db/internal/DTPDatabaseWrapper.java
+++ b/jpa/plugins/org.eclipse.jpt.db/src/org/eclipse/jpt/db/internal/DTPDatabaseWrapper.java
@@ -193,6 +193,9 @@ public final class DTPDatabaseWrapper extends Database {
else if( dtpCatalog.getName().equals( userName)) {
return userName; // returns user name as default catalog
}
+ else if( dtpCatalog.getName().equals( this.getName())) {
+ return this.getName(); // special catalog with same name as DB (PostgreSQL)
+ }
}
throw new NoSuchElementException();
}

Back to the top