Mercurial > dive4elements > river
changeset 5270:d17e3106c910
An oracle conection string needs a backend otherwise you get an error
even before the connection attempt is made.
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Wed, 13 Mar 2013 11:26:59 +0100 |
parents | b331742ba78d |
children | dac7723fb502 |
files | flys-artifacts/src/main/java/de/intevation/flys/utils/MapUtils.java |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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) {