git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/mutateops@1016 f203690c-595d-4dc9-a70b-905162fa7fd2tags/jackcess-2.1.5
@@ -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; | |||
@@ -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(); | |||
} |