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

Accessing short Foreign Key metadata fields as ints causes problems on iSeries

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0, 1.0.1, 1.1.0
    • Fix Version/s: 1.0.1, 1.1.0
    • Component/s: jdbc
    • Labels:
      None

      Description

      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.

        Activity

        Hide
        kwsutter Kevin Sutter added a comment -

        Resolved in 1.0.x branch and 1.1.0 trunk via svn revision 582838.

        Show
        kwsutter Kevin Sutter added a comment - Resolved in 1.0.x branch and 1.1.0 trunk via svn revision 582838.

          People

          • Assignee:
            kwsutter Kevin Sutter
            Reporter:
            kwsutter Kevin Sutter
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Due:
              Created:
              Updated:
              Resolved:

              Development