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

Invalid identifiers generated in org.hibernate.engine.internal.JoinSequence

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.2.3
    • Fix Version/s: 5.2.4, 5.1.8
    • Component/s: hibernate-core
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true

      Description

      The fix for HHH-9329 Closed introducted the following alias in the generated SQL statement

      final String alias = "_" + aliasNumber + "_" + column;
      

      At least for Derby that is not a valid identifier and causes an SQL syntax error ("An ordinary identifier must begin with a letter and contain only letters, underscore characters (_), and digits"), possibly there are other RDMBS affected.

        Attachments

          Issue links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: