Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 5873 invoked from network); 1 Sep 2010 08:54:38 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Sep 2010 08:54:38 -0000 Received: (qmail 58290 invoked by uid 500); 1 Sep 2010 08:54:37 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 58125 invoked by uid 500); 1 Sep 2010 08:54:34 -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 58117 invoked by uid 99); 1 Sep 2010 08:54:33 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Sep 2010 08:54:33 +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 08:54:15 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o818rrZN008507 for ; Wed, 1 Sep 2010 08:53:54 GMT Message-ID: <25454187.113081283331233058.JavaMail.jira@thor> Date: Wed, 1 Sep 2010 04:53:53 -0400 (EDT) From: "Milosz Tylenda (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Commented: (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:comment-tabpanel&focusedCommentId=12904974#action_12904974 ] Milosz Tylenda commented on OPENJPA-1779: ----------------------------------------- Mike, maybe it helps that in trunk Column.java tries to adapt to the magic 2007 number. It looks like it is time to convert 2007 into a constant in OracleDicitonary or elsewhere. > 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.