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 c1d37a7 commit 0364f14ad97bbbef6648cf967134eb77f03aef4b
@@ -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 0364f14

Please sign in to comment.