Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 1112 invoked from network); 3 Oct 2010 21:05:55 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Oct 2010 21:05:55 -0000 Received: (qmail 813 invoked by uid 500); 3 Oct 2010 21:05:55 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 752 invoked by uid 500); 3 Oct 2010 21:05:54 -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 744 invoked by uid 99); 3 Oct 2010 21:05:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Oct 2010 21:05:54 +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; Sun, 03 Oct 2010 21:05:54 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o93L5X5T010663 for ; Sun, 3 Oct 2010 21:05:33 GMT Message-ID: <15945693.521371286139933569.JavaMail.jira@thor> Date: Sun, 3 Oct 2010 17:05:33 -0400 (EDT) From: "Milosz Tylenda (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Issue Comment Edited: (OPENJPA-1691) Oracle XMLType column failed to insert/update when xml contains more than 4000 characters In-Reply-To: <22873519.25941276191132977.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OPENJPA-1691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12917398#action_12917398 ] Milosz Tylenda edited comment on OPENJPA-1691 at 10/3/10 5:04 PM: ------------------------------------------------------------------ The fix requires a JDBC 4 driver. There are still issues when querying over long individual XML nodes coming from obscure limits in Oracle's extractValue() function. Note that reading XML values longer than 4000 bytes was also broken - replaced getStringVal() calls with getClobVal(). As a side effect users gained a bit of control on INSERT/UPDATE statements in DBDictionary.getMarkerForInsertUpdate method. One can do things like INSERT INTO tab(id, uppercased_name) VALUES (?, UPPER(?)). was (Author: milosz): The fix requires a JDBC 4 driver. There are still issues when querying over long individual XML nodes coming from obscure limits in Oracle's extractValue() function. Note that reading XML values longer than 4000 bytes was also broken - replaced getStringVal() calls with getClobVal(). As a side effect users gained a bit of control on INSERT/UPDATE statements in DBDictionary.getMarkerForInsertUpdate method. > Oracle XMLType column failed to insert/update when xml contains more than 4000 characters > ----------------------------------------------------------------------------------------- > > Key: OPENJPA-1691 > URL: https://issues.apache.org/jira/browse/OPENJPA-1691 > Project: OpenJPA > Issue Type: Bug > Components: sql > Affects Versions: 1.2.2, 2.0.0, 2.0.1 > Environment: Oracle 10g, JDBC driver (ojdbc14.jar) 10.2.0.4.0, OpenJPA 1.2.2 > Reporter: Kelvin Law > Assignee: Milosz Tylenda > Fix For: 2.1.0 > > > Oracle throws the following exception when XML content is greater than 4000 characters: > ORA-01461: can bind a LONG value only for insert into a LONG column -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.