From 7ed1aa279a3c9e2d332d5786831fd9ddb83ba07b Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Thu, 18 Jun 2015 10:13:32 +0200 Subject: [PATCH] Add Informix specific health query Closes gh-1287 --- .../boot/actuate/health/DataSourceHealthIndicator.java | 1 + 1 file changed, 1 insertion(+) diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/DataSourceHealthIndicator.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/DataSourceHealthIndicator.java index 644b6a3f99..3f2dcf3b42 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/DataSourceHealthIndicator.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/DataSourceHealthIndicator.java @@ -59,6 +59,7 @@ public class DataSourceHealthIndicator extends AbstractHealthIndicator implement queries.put("Oracle", "SELECT 'Hello' from DUAL"); queries.put("Apache Derby", "SELECT 1 FROM SYSIBM.SYSDUMMY1"); queries.put("DB2", "SELECT 1 FROM SYSIBM.SYSDUMMY1"); + queries.put("Informix Dynamic Server", "select count(*) from systables"); PRODUCT_SPECIFIC_QUERIES = Collections.unmodifiableMap(queries); }