diff options
-rw-r--r-- | src/main/java/com/healthmarketscience/jackcess/impl/IndexImpl.java | 3 | ||||
-rw-r--r-- | src/main/java/com/healthmarketscience/jackcess/impl/RelationshipCreator.java | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/com/healthmarketscience/jackcess/impl/IndexImpl.java b/src/main/java/com/healthmarketscience/jackcess/impl/IndexImpl.java index 0cf07cf..2d97e75 100644 --- a/src/main/java/com/healthmarketscience/jackcess/impl/IndexImpl.java +++ b/src/main/java/com/healthmarketscience/jackcess/impl/IndexImpl.java @@ -56,6 +56,9 @@ public class IndexImpl implements Index, Comparable<IndexImpl> /** index table type for the "primary" table in a foreign key index */ static final byte PRIMARY_TABLE_TYPE = (byte)1; + /** index table type for the "secondary" table in a foreign key index */ + static final byte SECONDARY_TABLE_TYPE = (byte)2; + /** indicate an invalid index number for foreign key field */ private static final int INVALID_INDEX_NUMBER = -1; diff --git a/src/main/java/com/healthmarketscience/jackcess/impl/RelationshipCreator.java b/src/main/java/com/healthmarketscience/jackcess/impl/RelationshipCreator.java index 64e5abb..a326700 100644 --- a/src/main/java/com/healthmarketscience/jackcess/impl/RelationshipCreator.java +++ b/src/main/java/com/healthmarketscience/jackcess/impl/RelationshipCreator.java @@ -130,6 +130,7 @@ public class RelationshipCreator extends DBMutator otherTableNum = _secondaryTable.getTableDefPageNumber(); otherIdxNum = _secondaryTable.getLogicalIndexCount(); } else { + tableType = IndexImpl.SECONDARY_TABLE_TYPE; otherTableNum = _primaryTable.getTableDefPageNumber(); otherIdxNum = _primaryTable.getLogicalIndexCount(); } |