You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Kevin Sutter (JIRA)" <ji...@apache.org> on 2007/10/08 16:04:50 UTC
[jira] Created: (OPENJPA-395) Accessing short Foreign Key metadata
fields as ints causes problems on iSeries
Accessing short Foreign Key metadata fields as ints causes problems on iSeries
------------------------------------------------------------------------------
Key: OPENJPA-395
URL: https://issues.apache.org/jira/browse/OPENJPA-395
Project: OpenJPA
Issue Type: Bug
Components: jdbc
Affects Versions: 1.0.0, 1.0.1, 1.1.0
Reporter: Kevin Sutter
Assignee: Kevin Sutter
Fix For: 1.0.1, 1.1.0
Three of the fields in the JDBC Foreign Key metadata were being accessed incorrectly. These three fields are actually documented as being "shorts", but we were accessing them as "ints". Although most JDBC drivers will process this request correctly, we hit one problem with the JDBC driver on iSeries. Instead of waiting for a patch for that platform, it's easier for us to make the change.
The three fields are "KEY_SEQ", "DEFERRABILITY", and "DELETE_RULE". Field "UPDATE_RULE" is also a short, but we don't currently seem to be accessing that field.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (OPENJPA-395) Accessing short Foreign Key metadata
fields as ints causes problems on iSeries
Posted by "Kevin Sutter (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-395?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kevin Sutter resolved OPENJPA-395.
----------------------------------
Resolution: Fixed
Resolved in 1.0.x branch and 1.1.0 trunk via svn revision 582838.
> Accessing short Foreign Key metadata fields as ints causes problems on iSeries
> ------------------------------------------------------------------------------
>
> Key: OPENJPA-395
> URL: https://issues.apache.org/jira/browse/OPENJPA-395
> Project: OpenJPA
> Issue Type: Bug
> Components: jdbc
> Affects Versions: 1.0.0, 1.0.1, 1.1.0
> Reporter: Kevin Sutter
> Assignee: Kevin Sutter
> Fix For: 1.0.1, 1.1.0
>
>
> Three of the fields in the JDBC Foreign Key metadata were being accessed incorrectly. These three fields are actually documented as being "shorts", but we were accessing them as "ints". Although most JDBC drivers will process this request correctly, we hit one problem with the JDBC driver on iSeries. Instead of waiting for a patch for that platform, it's easier for us to make the change.
> The three fields are "KEY_SEQ", "DEFERRABILITY", and "DELETE_RULE". Field "UPDATE_RULE" is also a short, but we don't currently seem to be accessing that field.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.