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

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

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0, 1.0.1, 1.1.0
    • 1.0.1, 1.1.0
    • jdbc
    • 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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            kwsutter Kevin W. Sutter
            kwsutter Kevin W. Sutter
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment