You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "aabbcc (Created) (JIRA)" <ji...@apache.org> on 2012/03/01 14:27:58 UTC

[jira] [Created] (OPENJPA-2148) Issue with MaxColumnNameLength in the OracleDictionary class

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

        

[jira] [Commented] (OPENJPA-2148) Issue with MaxColumnNameLength in the OracleDictionary class

Posted by "aabbcc (Commented) (JIRA)" <ji...@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

        

[jira] [Assigned] (OPENJPA-2148) Issue with MaxColumnNameLength in the OracleDictionary class

Posted by "Rick Curtis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-2148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Curtis reassigned OPENJPA-2148:
------------------------------------

    Assignee: Rick Curtis
    
> 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
>            Assignee: Rick Curtis
>            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

        

[jira] [Commented] (OPENJPA-2148) Issue with MaxColumnNameLength in the OracleDictionary class

Posted by "Rick Curtis (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-2148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13220117#comment-13220117 ] 

Rick Curtis commented on OPENJPA-2148:
--------------------------------------

I think setting maxColumnNameLength to 32 would be more of a band-aid than anything else. That being said, I'm pretty booked right now so I won't get to this one anytime soon here. Perhaps you, or someone else on the list has some time to dig into this problem and figure out where the real bug is.
                
> 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

        

[jira] [Commented] (OPENJPA-2148) Issue with MaxColumnNameLength in the OracleDictionary class

Posted by "aabbcc (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-2148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13220113#comment-13220113 ] 

aabbcc commented on OPENJPA-2148:
---------------------------------

You need to set maxColumnNameLength limit to 32 in the OracleDictionary  OR fix the OpenJPA code which determines actual length.
                
> 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

        

[jira] [Commented] (OPENJPA-2148) Issue with MaxColumnNameLength in the OracleDictionary class

Posted by "Rick Curtis (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-2148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13220109#comment-13220109 ] 

Rick Curtis commented on OPENJPA-2148:
--------------------------------------

> Please fix this issue by changing MaxColumnNameLength in OracleDictionary class to 128. 
I don't think changing MaxColumnNameLength to 128 is the correct solution. It sounds like 30 characters is the correct limit, but we need to fix our logic where we determine the actual length. Somehow we're getting message up when calculating length + delimiters.
                
> 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

        

[jira] [Commented] (OPENJPA-2148) Issue with MaxColumnNameLength in the OracleDictionary class

Posted by "Rick Curtis (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-2148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13220052#comment-13220052 ] 

Rick Curtis commented on OPENJPA-2148:
--------------------------------------

What version of Oracle are you running? Has something changed on Oracle to allow column names with greater than 30 characters?
                
> 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