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 Jan 9, 2019
1 parent 0d15cbd commit 994ffb3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ protected Collection<IIndex> readIndices(Connection connection,
StringBuilder query = new StringBuilder();

query.append("SELECT a.INDEX_NAME, a.INDEX_TYPE, a.UNIQUENESS, b.COLUMN_NAME, b.COLUMN_POSITION FROM ALL_INDEXES a ");
query.append("JOIN ALL_IND_COLUMNS b ON a.table_name = b.table_name AND a.INDEX_NAME=b.INDEX_NAME ");
query.append("JOIN ALL_IND_COLUMNS b ON a.table_name = b.table_name AND a.INDEX_NAME=b.INDEX_NAME AND a.TABLE_OWNER = b.TABLE_OWNER ");
query.append("WHERE ");
query.append("a.TABLE_NAME = ? ");
query.append("AND a.GENERATED='N' ");
Expand Down

0 comments on commit 994ffb3

Please sign in to comment.