Permalink
Browse files

0003823: Improve performance and accuracy of DDL retrieval of Oracle

Indexes
  • Loading branch information...
jumpmind-josh committed Dec 18, 2018
1 parent 76a1675 commit c99d8a876a8cd2921858ce5a7d78d4e44b7d6dc8
@@ -481,7 +481,7 @@ public Trigger mapRow(Row row) {
}

protected Set<String> readPkIndecies(Connection connection, String schema, String tableName) throws SQLException {
String QUERY = "SELECT INDEX_NAME FROM ALL_CONSTRAINTS c WHERE c.TABLE_NAME = ? AND CONSTRAINT_TYPE = 'P'";
String QUERY = "SELECT CONSTRAINT_NAME FROM ALL_CONSTRAINTS c WHERE c.TABLE_NAME = ? AND CONSTRAINT_TYPE = 'P'";
if (schema != null) {
QUERY += " AND c.OWNER = ?";
}

0 comments on commit c99d8a8

Please sign in to comment.