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.

Reply via email to