OpenJPA
  1. OpenJPA
  2. OPENJPA-2148

Issue with MaxColumnNameLength in the OracleDictionary class

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.1.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            aabbcc
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development