Permalink
Browse files

hack to make this work for Redshift

  • Loading branch information...
garrettpatterson committed Aug 12, 2013
1 parent f288db3 commit 82cc4b0ae5e1a21f141493222f7a396c8bff0c0c
Showing with 2 additions and 1 deletion.
  1. +2 −1 org/postgresql/jdbc2/AbstractJdbc2DatabaseMetaData.java
@@ -43,7 +43,8 @@ protected int getMaxIndexKeys() throws SQLException {
if (INDEX_MAX_KEYS == 0)
{
String sql;
if (connection.haveMinimumServerVersion("8.0")) {
boolean isRedshift = true;
if (connection.haveMinimumServerVersion("8.0") && !isRedshift) {
sql = "SELECT setting FROM pg_catalog.pg_settings WHERE name='max_index_keys'";
} else {
String from;

0 comments on commit 82cc4b0

Please sign in to comment.