diff options
author | drecchia <danilo@deltatecnologia.com> | 2016-06-06 09:11:00 -0300 |
---|---|---|
committer | drecchia <danilo@deltatecnologia.com> | 2016-06-06 09:11:00 -0300 |
commit | d1f602835eff3df33261ce16620c51fb291c0763 (patch) | |
tree | 68cd189d91f5795ccd7c03669764516f4a513e3c /src | |
parent | 9c4f58c2bac0b2cad025f3ac3e79e88511a0b857 (diff) | |
download | traccar-server-d1f602835eff3df33261ce16620c51fb291c0763.tar.gz traccar-server-d1f602835eff3df33261ce16620c51fb291c0763.tar.bz2 traccar-server-d1f602835eff3df33261ce16620c51fb291c0763.zip |
- Fix hikari connection check sql.
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/database/DataManager.java | 2 |
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"); |