Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/utils/MapUtils.java @ 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 | 9e11599266c8 |
children | eb7a3f58bdd6 |
comparison
equal
deleted
inserted
replaced
5269:b331742ba78d | 5270:d17e3106c910 |
---|---|
54 } | 54 } |
55 | 55 |
56 String connection = null; | 56 String connection = null; |
57 | 57 |
58 if (FLYSUtils.isUsingOracle()) { | 58 if (FLYSUtils.isUsingOracle()) { |
59 if (groups < 3) { | 59 if (groups < 4) { |
60 logger.warn("Could only partially parse connection string."); | 60 logger.warn("Could only partially parse connection string."); |
61 return null; | 61 return null; |
62 } | 62 } |
63 | 63 |
64 String host = m.group(2); | 64 String host = m.group(2); |
65 String port = m.group(3); | 65 String port = m.group(3); |
66 | 66 String backend = m.group(4); |
67 connection = user + "/" + pass + "@" + host; | 67 connection = user + "/" + pass + "@" + host + "/" + backend; |
68 } | 68 } |
69 else { | 69 else { |
70 if (groups < 4) { | 70 if (groups < 4) { |
71 logger.warn("Could only partially parse connection string."); | 71 logger.warn("Could only partially parse connection string."); |
72 return null; | 72 return null; |