Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/backend/SessionFactoryProvider.java @ 5193:fb9dcc68b9c2
Possible fix for flys/1202. Initial SQL statements can now be issued at connection creation.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 07 Mar 2013 17:39:25 +0100 |
parents | 69f06b83b3ec |
children | fd7285e3829b |
comparison
equal
deleted
inserted
replaced
5192:1b6d4edeeb4c | 5193:fb9dcc68b9c2 |
---|---|
135 props.setProperty(Environment.USER, credentials.getUser()); | 135 props.setProperty(Environment.USER, credentials.getUser()); |
136 props.setProperty(Environment.PASS, credentials.getPassword()); | 136 props.setProperty(Environment.PASS, credentials.getPassword()); |
137 props.setProperty(Environment.DRIVER, credentials.getDriver()); | 137 props.setProperty(Environment.DRIVER, credentials.getDriver()); |
138 props.setProperty(Environment.URL, credentials.getUrl()); | 138 props.setProperty(Environment.URL, credentials.getUrl()); |
139 | 139 |
140 String connectionInitSqls = credentials.getConnectionInitSqls(); | |
141 if (connectionInitSqls != null) { | |
142 props.setProperty("connectionInitSqls", connectionInitSqls); | |
143 } | |
144 | |
140 cfg.mergeProperties(props); | 145 cfg.mergeProperties(props); |
141 | 146 |
142 return cfg; | 147 return cfg; |
143 } | 148 } |
144 | 149 |