Skip to content

Commit 83bdf19

Browse files
committed
Polish "Add Apache Phoenix to supported database drivers"
See gh-24114
1 parent 305a7d9 commit 83bdf19

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ protected Collection<String> getUrlPrefixes() {
200200

201201
/**
202202
* Apache Phoenix.
203+
* @since 2.5.0
203204
*/
204205
PHOENIX("Apache Phoenix", "org.apache.phoenix.jdbc.PhoenixDriver", null, "SELECT 1 FROM SYSTEM.CATALOG LIMIT 1"),
205206

Diff for: spring-boot-project/spring-boot/src/test/java/org/springframework/boot/jdbc/DatabaseDriverClassNameTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -46,7 +46,7 @@ class DatabaseDriverClassNameTests {
4646

4747
private static final Set<DatabaseDriver> EXCLUDED_DRIVERS = Collections
4848
.unmodifiableSet(EnumSet.of(DatabaseDriver.UNKNOWN, DatabaseDriver.DB2_AS400, DatabaseDriver.INFORMIX,
49-
DatabaseDriver.HANA, DatabaseDriver.TERADATA, DatabaseDriver.REDSHIFT, DatabaseDriver.PHOENIX));
49+
DatabaseDriver.HANA, DatabaseDriver.PHOENIX, DatabaseDriver.TERADATA, DatabaseDriver.REDSHIFT));
5050

5151
@ParameterizedTest(name = "{0} {2}")
5252
@MethodSource

Diff for: spring-boot-project/spring-boot/src/test/java/org/springframework/boot/jdbc/DatabaseDriverTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)