Permalink
Browse files

0003823: Improve performance and accuracy of DDL retrieval of Oracle

Indexes (merge from 3.9)
  • Loading branch information...
jumpmind-josh committed Jan 9, 2019
1 parent da20af0 commit 0f11eefdd4fbf2c7dc7ed8b482ed48f13cbd7388
@@ -339,7 +339,7 @@ protected boolean isAutoIncrement(Connection connection, Table table, Column col
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' ");

0 comments on commit 0f11eef

Please sign in to comment.