Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 20625 invoked from network); 31 Aug 2010 22:38:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 31 Aug 2010 22:38:14 -0000 Received: (qmail 51873 invoked by uid 500); 31 Aug 2010 22:38:14 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 51837 invoked by uid 500); 31 Aug 2010 22:38:14 -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 51829 invoked by uid 99); 31 Aug 2010 22:38:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Aug 2010 22:38:14 +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; Tue, 31 Aug 2010 22:38:13 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7VMbqDI028257 for ; Tue, 31 Aug 2010 22:37:53 GMT Message-ID: <20009492.104011283294272929.JavaMail.jira@thor> Date: Tue, 31 Aug 2010 18:37:52 -0400 (EDT) From: "Michael Dick (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Created: (OPENJPA-1779) Unknown column type returned for Oracle XMLType columns MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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 Priority: Minor 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.