Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-74

OracleSchemaManager - incorrectly detected the length of the string columns

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-RC1-RC3
    • Fix Version/s: 2.0-RC5
    • Component/s: None
    • Labels:
      None

      Description

      When I create a VARCHAR2 column with the length specified in char units (VARCHAR2(10 CHAR)) instead of the default byte, the metadata stored in all_tab_columns -> data_length is not 10, but 40. It is better to use char_length instead of data_length. Char_length is the same wheter the size unit is in CHAR or BYTE.

      It is neccessary for me to use CHAR instead of the default BYTE, because I am using unicode charset.

        Activity

        Hide
        Benjamin Eberlei added a comment -

        Merged

        Show
        Benjamin Eberlei added a comment - Merged
        Hide
        Benjamin Eberlei added a comment -

        Can I appoint you to Doctrine's Oracle specialist?

        Thank you very much, I will merge that as soon as i have time.

        Show
        Benjamin Eberlei added a comment - Can I appoint you to Doctrine's Oracle specialist? Thank you very much, I will merge that as soon as i have time.
        Show
        Miloslav "adrive" Kmet added a comment - https://github.com/milokmet/dbal/commit/a5087e8e229bfd2cde947e1d387ebe2e2b122b85

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Miloslav "adrive" Kmet
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: