From e74348ee30c4c7c8935d0a522db61b636d962715 Mon Sep 17 00:00:00 2001 From: Jonathan Bregler Date: Tue, 6 Nov 2018 14:06:40 +0100 Subject: [PATCH] Fix HANA validation query This commit updates the validation query for HANA. It should use the fully qualified dummy table name (SYS.DUMMY) to avoid unexpected results if there is a local table named DUMMY. Closes gh-15124 --- .../main/java/org/springframework/boot/jdbc/DatabaseDriver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/jdbc/DatabaseDriver.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/jdbc/DatabaseDriver.java index 04deb07cb9ed..473e1628d367 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/jdbc/DatabaseDriver.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/jdbc/DatabaseDriver.java @@ -104,7 +104,7 @@ public String getId() { * @since 2.1.0 */ HANA("HDB", "com.sap.db.jdbc.Driver", "com.sap.db.jdbcext.XADataSourceSAP", - "SELECT 1 FROM DUMMY") { + "SELECT 1 FROM SYS.DUMMY") { @Override protected Collection getUrlPrefixes() { return Collections.singleton("sap");