mirror of https://github.com/apache/openjpa.git
OPENJPA-1596: make valid index name for DB2 zOS
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@926741 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c4e1b1b339
commit
53dddbeb8f
|
@ -912,7 +912,8 @@ public class DB2Dictionary
|
|||
// build the index for the sequence tables
|
||||
// the index name will be the fully qualified table name + _IDX
|
||||
Table tab = schema.getTable(table);
|
||||
Index idx = tab.addIndex(DBIdentifier.append(tab.getFullIdentifier(), "IDX"));
|
||||
DBIdentifier idxName = DBIdentifier.append(tab.getFullIdentifier(), "IDX");
|
||||
Index idx = tab.addIndex(getValidIndexName(idxName, tab));
|
||||
idx.setUnique(true);
|
||||
idx.addColumn(pkColumn);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue