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:
Fay Wang 2010-03-23 19:27:24 +00:00
parent c4e1b1b339
commit 53dddbeb8f
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}