Return-Path: X-Original-To: apmail-openjpa-dev-archive@www.apache.org Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2809999FB for ; Thu, 1 Mar 2012 14:38:18 +0000 (UTC) Received: (qmail 83752 invoked by uid 500); 1 Mar 2012 14:38:18 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 83714 invoked by uid 500); 1 Mar 2012 14:38: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 83705 invoked by uid 99); 1 Mar 2012 14:38:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2012 14:38:18 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2012 14:38:16 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B969638D9 for ; Thu, 1 Mar 2012 14:37:56 +0000 (UTC) Date: Thu, 1 Mar 2012 14:37:56 +0000 (UTC) From: "aabbcc (Commented) (JIRA)" To: dev@openjpa.apache.org Message-ID: <1856495318.7361.1330612676761.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1885842879.7162.1330608478715.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (OPENJPA-2148) Issue with MaxColumnNameLength in the OracleDictionary class 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-2148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13220065#comment-13220065 ] aabbcc commented on OPENJPA-2148: --------------------------------- Its Oracle version 11. There are few column names with 30 characters in length. It seems OpenJPA considers start & end quotes as well while counting column name length therefore this issue is arising. Even I tried with different combination of characters. Its bug in OpenJPA. > Issue with MaxColumnNameLength in the OracleDictionary class > ------------------------------------------------------------ > > Key: OPENJPA-2148 > URL: https://issues.apache.org/jira/browse/OPENJPA-2148 > Project: OpenJPA > Issue Type: Bug > Affects Versions: 2.1.1 > Reporter: aabbcc > Priority: Blocker > > I am using oracle database with OpenJPA. > The DBDictionary class defines default MaxColumnNameLength as 128. > But In the OracleDictionary class which extend DBDictionary has MaxColumnNameLength as 30. While generating sql query, JPA takes first 28 characters of the column name and ignores rest of the characters. Also it takes start & end quotes, which in total makes it to 30 characters > Due to this, jpa query fails if there are column in the oracle database with more than 28 characters as it finds mismatch in SQL query and actual column name. > Please fix this issue by changing MaxColumnNameLength in OracleDictionary class to 128. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira