Uploaded image for project: 'DdlUtils'
  1. DdlUtils
  2. DDLUTILS-192

Model exception thrown when index references an undefined column

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0
    • Fix Version/s: None
    • Labels:
      None

      Description

      org.apache.ddlutils.model.ModelException: The index in table references the undefined column is thrown when referencing a column that exists but is referenced in Postgres incorrectly.

      Column type exists in a table. In an index, however, type is stored as "type". The quotes ("") disallow Java from finding the column.

      The fix is simple:
      add name = name.replace("\"", ""); to the very top of findColumn(String name, boolean caseSensitive) in org.apache.ddlutils.model.Table

        Attachments

        1. Table.java
          22 kB
          Sebastian Niezgoda

          Activity

            People

            • Assignee:
              tomdz Thomas Dudziak
              Reporter:
              sniezgoda Sebastian Niezgoda
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: