[Dive4elements-commits] [PATCH 3 of 3] An oracle conection string needs a backend otherwise you get an error
Wald Commits
scm-commit at wald.intevation.org
Wed Mar 13 11:27:12 CET 2013
# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1363170419 -3600
# Node ID d17e3106c910927f4227925e3fb03afc3b2cd53c
# Parent b331742ba78db066b06bd9cb3a1e7b352254870b
An oracle conection string needs a backend otherwise you get an error
even before the connection attempt is made.
diff -r b331742ba78d -r d17e3106c910 flys-artifacts/src/main/java/de/intevation/flys/utils/MapUtils.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/utils/MapUtils.java Wed Mar 13 11:25:23 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/utils/MapUtils.java Wed Mar 13 11:26:59 2013 +0100
@@ -56,15 +56,15 @@
String connection = null;
if (FLYSUtils.isUsingOracle()) {
- if (groups < 3) {
+ if (groups < 4) {
logger.warn("Could only partially parse connection string.");
return null;
}
String host = m.group(2);
String port = m.group(3);
-
- connection = user + "/" + pass + "@" + host;
+ String backend = m.group(4);
+ connection = user + "/" + pass + "@" + host + "/" + backend;
}
else {
if (groups < 4) {
More information about the Dive4elements-commits
mailing list