Add DB2 specific health query

Closes gh-2565
This commit is contained in:
Johannes Stelzer
2015-02-27 08:57:06 +01:00
committed by Stephane Nicoll
parent 2801f6a848
commit ea2a09cbf6

View File

@@ -58,6 +58,7 @@ public class DataSourceHealthIndicator extends AbstractHealthIndicator implement
+ "INFORMATION_SCHEMA.SYSTEM_USERS");
queries.put("Oracle", "SELECT 'Hello' from DUAL");
queries.put("Apache Derby", "SELECT 1 FROM SYSIBM.SYSDUMMY1");
queries.put("DB2", "SELECT 1 FROM SYSIBM.SYSDUMMY1");
PRODUCT_SPECIFIC_QUERIES = Collections.unmodifiableMap(queries);
}