Polish "Add support for AWS Redshift JDBC driver"

Closes gh-16831
This commit is contained in:
Stephane Nicoll 2019-05-20 14:22:56 +02:00
parent 146f35d2bd
commit 9e31c764fc
2 changed files with 3 additions and 2 deletions

View File

@ -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"),

View File

@ -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"))