Commit 9e31c764 authored by Stephane Nicoll's avatar Stephane Nicoll

Polish "Add support for AWS Redshift JDBC driver"

Closes gh-16831
parent 146f35d2
......@@ -100,7 +100,8 @@ public enum DatabaseDriver {
"SELECT 1"),
/**
* AWS Redshift.
* Amazon Redshift.
* @since 2.2.0
*/
REDSHIFT("Amazon Redshift", "com.amazon.redshift.jdbc.Driver", null, "SELECT 1"),
......
......@@ -123,7 +123,7 @@ public class DatabaseDriverTests {
assertThat(DatabaseDriver.fromJdbcUrl("jdbc:postgresql://127.0.0.1:5432/sample"))
.isEqualTo(DatabaseDriver.POSTGRESQL);
assertThat(DatabaseDriver.fromJdbcUrl(
"jdbc:redshift://foo.bar.us-east-1.redshift.amazonaws.com:5439/postgres"))
"jdbc:redshift://examplecluster.abc123xyz789.us-west-2.redshift.amazonaws.com:5439/sample"))
.isEqualTo(DatabaseDriver.REDSHIFT);
assertThat(
DatabaseDriver.fromJdbcUrl("jdbc:jtds:sqlserver://127.0.0.1:1433/sample"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment