You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by ss...@apache.org on 2013/07/05 11:17:29 UTC

git commit: fine-tuning of connection validation

Updated Branches:
  refs/heads/develop a85b8a52f -> 50534993b


fine-tuning of connection validation


Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/50534993
Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/50534993
Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/50534993

Branch: refs/heads/develop
Commit: 50534993baf38eedea6aab61a6c2cf6e39f5b0cd
Parents: a85b8a5
Author: Sebastian Schaffert <ss...@apache.org>
Authored: Fri Jul 5 11:17:23 2013 +0200
Committer: Sebastian Schaffert <ss...@apache.org>
Committed: Fri Jul 5 11:17:23 2013 +0200

----------------------------------------------------------------------
 .../org/apache/marmotta/kiwi/persistence/KiWiPersistence.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/50534993/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/persistence/KiWiPersistence.java
----------------------------------------------------------------------
diff --git a/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/persistence/KiWiPersistence.java b/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/persistence/KiWiPersistence.java
index 7665c88..04f872d 100644
--- a/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/persistence/KiWiPersistence.java
+++ b/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/persistence/KiWiPersistence.java
@@ -134,7 +134,8 @@ public class KiWiPersistence {
         poolConfig.setPassword(configuration.getDbPassword());
         poolConfig.setDefaultTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED);
         poolConfig.setCommitOnReturn(true);
-        poolConfig.setValidationQuery("SELECT 1");
+        poolConfig.setValidationQuery(configuration.getDialect().getValidationQuery());
+        poolConfig.setLogValidationErrors(true);
         /*
         poolConfig.setLogAbandoned(true);
         poolConfig.setRemoveAbandoned(true);