Author: tomdz
Date: Thu May 31 22:07:49 2007
New Revision: 543392
URL: http://svn.apache.org/viewvc?view=rev&rev=543392
Log:
Fixed a bug in the system index filtering
Modified:
db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/JdbcModelReader.java
Modified:
db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/JdbcModelReader.java
URL:
http://svn.apache.org/viewvc/db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/JdbcModelReader.java?view=diff&rev=543392&r1=543391&r2=543392
==============================================================================
---
db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/JdbcModelReader.java
(original)
+++
db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/JdbcModelReader.java
Thu May 31 22:07:49 2007
@@ -615,7 +615,7 @@
columnNames.add(pks[columnIdx].getName());
}
- for (int indexIdx = 0; indexIdx < table.getIndexCount(); indexIdx++)
+ for (int indexIdx = 0; indexIdx < table.getIndexCount();)
{
Index index = table.getIndex(indexIdx);
@@ -623,7 +623,10 @@
isInternalPrimaryKeyIndex(metaData, table, index))
{
table.removeIndex(indexIdx);
- break;
+ }
+ else
+ {
+ indexIdx++;
}
}
}
@@ -653,7 +656,7 @@
columnNames.add(name);
}
- for (int indexIdx = 0; indexIdx < table.getIndexCount(); indexIdx++)
+ for (int indexIdx = 0; indexIdx < table.getIndexCount();)
{
Index index = table.getIndex(indexIdx);
@@ -662,7 +665,10 @@
{
fk.setAutoIndexPresent(true);
table.removeIndex(indexIdx);
- break;
+ }
+ else
+ {
+ indexIdx++;
}
}
}