[PATCH] Fetching validation queries from system property makes no sense
Wald Commits
scm-commit at wald.intevation.org
Fri Jun 8 11:14:57 CEST 2018
# HG changeset patch
# User gernotbelger
# Date 1528449291 -7200
# Node ID 2ae6c63c576bf32542de54d2966b193d6dc3c310
# Parent 3bbc687e6cb8d3e73af4740a2fb391a9202d384d
Fetching validation queries from system property makes no sense.
diff -r 3bbc687e6cb8 -r 2ae6c63c576b backend/src/main/java/org/dive4elements/river/backend/FLYSCredentials.java
--- a/backend/src/main/java/org/dive4elements/river/backend/FLYSCredentials.java Fri Jun 08 11:06:07 2018 +0200
+++ b/backend/src/main/java/org/dive4elements/river/backend/FLYSCredentials.java Fri Jun 08 11:14:51 2018 +0200
@@ -160,13 +160,9 @@
"flys.backend.url",
"jdbc:postgresql://localhost:5432/flys");
- public static final String DEFAULT_CONNECTION_INIT_SQLS =
- System.getProperty(
- "flys.backend.connection.init.sqls");
+ private static final String DEFAULT_CONNECTION_INIT_SQLS = "select 1 from rivers";
- public static final String DEFAULT_VALIDATION_QUERY =
- System.getProperty(
- "flys.backend.connection.validation.query");
+ private static final String DEFAULT_VALIDATION_QUERY = "select 1 from rivers";
public static final String DEFAULT_MAX_WAIT =
System.getProperty("flys.backend.connection.max.wait");
More information about the Dive4Elements-commits
mailing list