openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Donald Woods (JIRA)" <j...@apache.org>
Subject [jira] Updated: (OPENJPA-1596) Index name too long for DB2 zOS
Date Tue, 23 Mar 2010 20:03:27 GMT

     [ https://issues.apache.org/jira/browse/OPENJPA-1596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Donald Woods updated OPENJPA-1596:
----------------------------------

          Component/s: jdbc
    Affects Version/s: 2.0.0-beta2
        Fix Version/s:     (was: 2.1.0)
                       2.0.0-beta3

> Index name too long for DB2 zOS
> -------------------------------
>
>                 Key: OPENJPA-1596
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1596
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jdbc
>    Affects Versions: 2.0.0-beta2
>            Reporter: Fay Wang
>            Assignee: Fay Wang
>             Fix For: 2.0.0-beta3
>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message