Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 6173 invoked from network); 8 Oct 2007 14:05:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Oct 2007 14:05:19 -0000 Received: (qmail 6037 invoked by uid 500); 8 Oct 2007 14:05:07 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 5999 invoked by uid 500); 8 Oct 2007 14:05:07 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 5990 invoked by uid 99); 8 Oct 2007 14:05:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Oct 2007 07:05:07 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Oct 2007 14:05:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9B853714159 for ; Mon, 8 Oct 2007 07:04:50 -0700 (PDT) Message-ID: <24952582.1191852290603.JavaMail.jira@brutus> Date: Mon, 8 Oct 2007 07:04:50 -0700 (PDT) From: "Kevin Sutter (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Created: (OPENJPA-395) Accessing short Foreign Key metadata fields as ints causes problems on iSeries MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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.