diff --git a/R/redshift.r b/R/redshift.r index 01b3753..587ec93 100644 --- a/R/redshift.r +++ b/R/redshift.r @@ -5,9 +5,9 @@ library(RJDBC) redshift.driver <- function(postgresql_driver = "default") { if(postgresql_driver != "default"){ driver.class.path <- postgresql_driver - } else driver.class.path <- system.file("java", "postgresql-8.4-703.jdbc4.jar", package = "redshift") + } else driver.class.path <- system.file("java", "RedshiftJDBC41-1.1.10.1010.jar", package = "redshift") - return(JDBC("org.postgresql.Driver", driver.class.path, identifier.quote="`")) + return(JDBC("com.amazon.redshift.jdbc41.Driver", driver.class.path, identifier.quote="`")) } redshift.connect <- function(jdbcUrl, username, password, custom_driver = "default") { diff --git a/inst/java/RedshiftJDBC41-1.1.10.1010.jar b/inst/java/RedshiftJDBC41-1.1.10.1010.jar new file mode 100644 index 0000000..a7224da Binary files /dev/null and b/inst/java/RedshiftJDBC41-1.1.10.1010.jar differ diff --git a/inst/java/postgresql-8.4-703.jdbc4.jar b/inst/java/postgresql-8.4-703.jdbc4.jar deleted file mode 100644 index 7c8d5f8..0000000 Binary files a/inst/java/postgresql-8.4-703.jdbc4.jar and /dev/null differ diff --git a/man/redshift.driver.Rd b/man/redshift.driver.Rd index a5aea55..af9c515 100644 --- a/man/redshift.driver.Rd +++ b/man/redshift.driver.Rd @@ -9,7 +9,7 @@ Creates the JDBC driver used by RJDBC to connect to Redshift. Doesn't need to be redshift.driver(custom_driver = "default") } \arguments{ - \item{custom_driver}{Option to point to a custom PostgreSQL driver JAR. Class name must be "org.postgresql.Driver"} + \item{custom_driver}{Option to point to a custom PostgreSQL driver JAR. Class name must be "com.amazon.redshift.jdbc41.Driver"} } \value{ JDBC Driver