Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-1596

Index name too long for DB2 zOS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-beta2
    • 2.0.0-beta3
    • jdbc
    • None

    Description

      When running JPA on DB2 zOS v9, the following exception is thrown:

      Exception in thread "main" <openjpa-2.0.0-SNAPSHOT-r422266:832587 nonfatal user error> org.apache.openjpa.persistence.ArgumentException: Index name "OPENJPA_SEQUENCE_TABLE_IDX" is 26-character long. The database allows maximum 18-character for an index name.
      at org.apache.openjpa.jdbc.sql.DBDictionary.checkNameLength(DBDictionary.java:5021)
      at org.apache.openjpa.jdbc.sql.DBDictionary.getCreateIndexSQL(DBDictionary.java:3429)
      at org.apache.openjpa.jdbc.schema.SchemaTool.createIndex(SchemaTool.java:1017)
      at org.apache.openjpa.jdbc.schema.SchemaTool.add(SchemaTool.java:565)
      at org.apache.openjpa.jdbc.schema.SchemaTool.add(SchemaTool.java:345)
      at org.apache.openjpa.jdbc.schema.SchemaTool.run(SchemaTool.java:322)
      at org.apache.openjpa.jdbc.meta.MappingTool.record(MappingTool.java:501)
      at org.apache.openjpa.jdbc.meta.MappingTool.record(MappingTool.java:453)
      at org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory.synchronizeMappings(JDBCBrokerFactory.java:155)
      at org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory.synchronizeMappings(JDBCBrokerFactory.java:159)

      Attachments

        Issue Links

          Activity

            People

              faywang Fay Wang
              faywang Fay Wang
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: