Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 76763 invoked from network); 1 Sep 2010 17:58:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Sep 2010 17:58:19 -0000 Received: (qmail 1886 invoked by uid 500); 1 Sep 2010 17:58:19 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 1481 invoked by uid 500); 1 Sep 2010 17:58:18 -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 1473 invoked by uid 99); 1 Sep 2010 17:58:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Sep 2010 17:58:18 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Sep 2010 17:58:16 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o81HvsuE014296 for ; Wed, 1 Sep 2010 17:57:54 GMT Message-ID: <11358894.118941283363874678.JavaMail.jira@thor> Date: Wed, 1 Sep 2010 13:57:54 -0400 (EDT) From: "Michael Dick (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Closed: (OPENJPA-1779) Unknown column type returned for Oracle XMLType columns In-Reply-To: <20009492.104011283294272929.JavaMail.jira@thor> 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-1779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Dick closed OPENJPA-1779. --------------------------------- Resolution: Duplicate Dup of OPENJPA-1289, closing. > Unknown column type returned for Oracle XMLType columns > ------------------------------------------------------- > > Key: OPENJPA-1779 > URL: https://issues.apache.org/jira/browse/OPENJPA-1779 > Project: OpenJPA > Issue Type: Bug > Components: jdbc > Affects Versions: 1.2.2 > Reporter: Michael Dick > Assignee: Michael Dick > Priority: Minor > Attachments: OPENJPA-1779-1.2.x.diff.txt > > > I've only seen this as an issue when using Oracle's XMLType and using openjpa.jdbc.SchemaFactory=native to build mapping information from the database. There may be other ways this problem can be exposed. > Recent versions of the JDBC driver for Oracle return 2007 as the DATA_TYPE for XMLType column (observed on 11.2.0.1.0). Earlier versions (10.2.0.3.0) returned java.sql.Types.OTHER. What's odd is that I don't see 2007 as a defined constant for java.sql.Types - as a result OpenJPA throws an exception citing an unknown column type. It's not clear to me whether this is a bug in the JDBC driver or something we need to adapt to, or whether 2007 was just a holding place for Types.SQLXML (which is set to 2009). > As a workaround we can treat 2007 as Types.OTHER for Oracle (at least for OpenJPA 1.2.x). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.