aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database
diff options
context:
space:
mode:
authordrecchia <danilo@deltatecnologia.com>2016-06-06 09:11:00 -0300
committerdrecchia <danilo@deltatecnologia.com>2016-06-06 09:11:00 -0300
commitd1f602835eff3df33261ce16620c51fb291c0763 (patch)
tree68cd189d91f5795ccd7c03669764516f4a513e3c /src/org/traccar/database
parent9c4f58c2bac0b2cad025f3ac3e79e88511a0b857 (diff)
downloadtrackermap-server-d1f602835eff3df33261ce16620c51fb291c0763.tar.gz
trackermap-server-d1f602835eff3df33261ce16620c51fb291c0763.tar.bz2
trackermap-server-d1f602835eff3df33261ce16620c51fb291c0763.zip
- Fix hikari connection check sql.
Diffstat (limited to 'src/org/traccar/database')
-rw-r--r--src/org/traccar/database/DataManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java
index ad7c4478b..4e69d1d8e 100644
--- a/src/org/traccar/database/DataManager.java
+++ b/src/org/traccar/database/DataManager.java
@@ -117,7 +117,7 @@ public class DataManager implements IdentityManager {
hikariConfig.setJdbcUrl(config.getString("database.url"));
hikariConfig.setUsername(config.getString("database.user"));
hikariConfig.setPassword(config.getString("database.password"));
- hikariConfig.setConnectionInitSql("SELECT 1 FROM DUAL");
+ hikariConfig.setConnectionInitSql(config.getString("database.checkConnection"));
hikariConfig.setIdleTimeout(600000);
int maxPoolSize = config.getInteger("database.maxPoolSize");