Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 8001 invoked from network); 7 May 2009 16:03:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 May 2009 16:03:52 -0000 Received: (qmail 25099 invoked by uid 500); 7 May 2009 16:03:52 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 25062 invoked by uid 500); 7 May 2009 16:03:52 -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 25052 invoked by uid 99); 7 May 2009 16:03:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 May 2009 16:03:52 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 May 2009 16:03:50 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5F62E234C003 for ; Thu, 7 May 2009 09:03:30 -0700 (PDT) Message-ID: <352138485.1241712210376.JavaMail.jira@brutus> Date: Thu, 7 May 2009 09:03:30 -0700 (PDT) From: "Fay Wang (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Commented: (OPENJPA-973) Allow DB2 JCC driver to work with Informix database In-Reply-To: <315565658.1236727970557.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12706954#action_12706954 ] Fay Wang commented on OPENJPA-973: ---------------------------------- There is an open issue with db2 jcc driver when connecting to Informix. A similar call to getColumns work with both jcc and native jdbc driver: ResultSet rs = dbMeta.getColumns("demodb", null, "jpataskbean", null); ==> jcc return columns However, the getImportedKeys does not work with jcc driver: rs = dbMeta.getImportedKeys("demodb", null, "jpataskbean"); ==> jcc returns empty result set There can be two possibilities here. The database metadata methods in the driver are implemented by calling a stored procedure on the server. So the problem could be in the in the stored procedure. Or since the IDS server supports two different protocols (i.e. sqli and drda). It is possible that getImportedKeys is working in sqli protocol which is used with Informix legacy jdbc driver and not working with drda protocol which is used by JCC driver. Either way this does seems to be a JCC driver problem. > Allow DB2 JCC driver to work with Informix database > --------------------------------------------------- > > Key: OPENJPA-973 > URL: https://issues.apache.org/jira/browse/OPENJPA-973 > Project: OpenJPA > Issue Type: Bug > Components: jdbc > Reporter: Fay Wang > Fix For: 2.0.0 > > Attachments: OPENJPA-973.patch > > > Openjpa parses the DatabaseMetaData retrieved from the jdbc connection to determine the database type. For informix, if db2jcc driver is used, the product name in the DatabaseMetaData does not start with "informix", but with "ids" -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.