diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-06-09 10:30:49 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-06-09 10:30:49 +1200 |
commit | cbc7ebd663ad71b1ff5882ffa3dd920c9c81b60d (patch) | |
tree | 649230f6f8399e277840ce68f031fcc22adfc767 /src/org/traccar | |
parent | 0e983a5c13232a8112fcd81bb4be016ea1022deb (diff) | |
parent | 51278b0663f2daa6f3ba33c82e6e9c4b00163410 (diff) | |
download | trackermap-server-cbc7ebd663ad71b1ff5882ffa3dd920c9c81b60d.tar.gz trackermap-server-cbc7ebd663ad71b1ff5882ffa3dd920c9c81b60d.tar.bz2 trackermap-server-cbc7ebd663ad71b1ff5882ffa3dd920c9c81b60d.zip |
Merge pull request #2003 from drecchia/master-hikari-fix
Fix connection check sql
Diffstat (limited to 'src/org/traccar')
-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"); |