Skip to content

Commit

Permalink
0003823: Improve performance and accuracy of DDL retrieval of Oracle
Browse files Browse the repository at this point in the history
Indexes
  • Loading branch information
jumpmind-josh committed Dec 18, 2018
1 parent 76a1675 commit c99d8a8
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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 = ?";
}
Expand Down

0 comments on commit c99d8a8

Please sign in to comment.