From d1f602835eff3df33261ce16620c51fb291c0763 Mon Sep 17 00:00:00 2001 From: drecchia Date: Mon, 6 Jun 2016 09:11:00 -0300 Subject: - Fix hikari connection check sql. --- src/org/traccar/database/DataManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org') 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"); -- cgit v1.2.3