Uploaded image for project: 'Hibernate ORM'
  1. HHH-11915

DatabaseMetaData#getIndexInfo can return column names enclosed in quotes on PostgresPlus

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects versions: 5.2.10, 5.1.9
    • Fix versions: 5.2.11, 5.1.11
    • Components: None
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      Description

      PostgresPlus returns column names enclosed in quotes if the field was enclosed in quotes when the index was created; other DBs apparently don't return quotes column names. Hibernate assumes that the column names are not quoted, resulting the excepton:

      "org.hibernate.boot.model.naming.IllegalIdentifierException: Identifier text should not contain quote markers (` or ")"

      This is reproduced by SchemaUpdateTest.testSchemaUpdateAndValidation on PostgresPlus.

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                gbadner Gail Badner
                Reporter:
                gbadner Gail Badner
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: