Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornhauge2008-04-30 22:45:54 +0000
committernhauge2008-04-30 22:45:54 +0000
commitdde0076e66906c515d8c8312dc1f16e8259da8f0 (patch)
tree07cd91771ae32672540877c66e7ff3f5efc9cbb9
parentd885efeba9969670d4799c2ad4b5545153d5e641 (diff)
downloadwebtools.dali-dde0076e66906c515d8c8312dc1f16e8259da8f0.tar.gz
webtools.dali-dde0076e66906c515d8c8312dc1f16e8259da8f0.tar.xz
webtools.dali-dde0076e66906c515d8c8312dc1f16e8259da8f0.zip
208946 - Handle DB user name with permissions settings. Simply take the first part of the string and use as user name.
-rw-r--r--jpa/plugins/org.eclipse.jpt.db/src/org/eclipse/jpt/db/internal/DTPConnectionProfileWrapper.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.db/src/org/eclipse/jpt/db/internal/DTPConnectionProfileWrapper.java b/jpa/plugins/org.eclipse.jpt.db/src/org/eclipse/jpt/db/internal/DTPConnectionProfileWrapper.java
index fdf1f0c774..742f3447ef 100644
--- a/jpa/plugins/org.eclipse.jpt.db/src/org/eclipse/jpt/db/internal/DTPConnectionProfileWrapper.java
+++ b/jpa/plugins/org.eclipse.jpt.db/src/org/eclipse/jpt/db/internal/DTPConnectionProfileWrapper.java
@@ -159,7 +159,11 @@ final class DTPConnectionProfileWrapper
}
public String getUserName() {
- return this.getProperty(IJDBCDriverDefinitionConstants.USERNAME_PROP_ID);
+ String userName = this.getProperty(IJDBCDriverDefinitionConstants.USERNAME_PROP_ID);
+ if (userName.contains(" ")){
+ return userName.split("\\s")[0];
+ }
+ return userName;
}
public String getUserPassword() {

Back to the top