Skip to content

Commit e74348e

Browse files
breglerjsnicoll
authored andcommitted
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
1 parent f274772 commit e74348e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/jdbc/DatabaseDriver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public String getId() {
104104
* @since 2.1.0
105105
*/
106106
HANA("HDB", "com.sap.db.jdbc.Driver", "com.sap.db.jdbcext.XADataSourceSAP",
107-
"SELECT 1 FROM DUMMY") {
107+
"SELECT 1 FROM SYS.DUMMY") {
108108
@Override
109109
protected Collection<String> getUrlPrefixes() {
110110
return Collections.singleton("sap");

0 commit comments

Comments
 (0)