Skip to content

Commit 9e31c76

Browse files
committed
Polish "Add support for AWS Redshift JDBC driver"
Closes gh-16831
1 parent 146f35d commit 9e31c76

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ public String getId() {
100100
"SELECT 1"),
101101

102102
/**
103-
* AWS Redshift.
103+
* Amazon Redshift.
104+
* @since 2.2.0
104105
*/
105106
REDSHIFT("Amazon Redshift", "com.amazon.redshift.jdbc.Driver", null, "SELECT 1"),
106107

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public void databaseJdbcUrlLookups() {
123123
assertThat(DatabaseDriver.fromJdbcUrl("jdbc:postgresql://127.0.0.1:5432/sample"))
124124
.isEqualTo(DatabaseDriver.POSTGRESQL);
125125
assertThat(DatabaseDriver.fromJdbcUrl(
126-
"jdbc:redshift://foo.bar.us-east-1.redshift.amazonaws.com:5439/postgres"))
126+
"jdbc:redshift://examplecluster.abc123xyz789.us-west-2.redshift.amazonaws.com:5439/sample"))
127127
.isEqualTo(DatabaseDriver.REDSHIFT);
128128
assertThat(
129129
DatabaseDriver.fromJdbcUrl("jdbc:jtds:sqlserver://127.0.0.1:1433/sample"))

0 commit comments

Comments
 (0)