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

Form-feed (\f 0x0C) in generated SQL triggers exceptions in Firebird

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.2.0, 5.2.1, 5.2.2, 5.2.3, 5.2.4, 5.2.5, 5.2.6, 5.2.7
    • Fix Version/s: 5.2.8
    • Component/s: hibernate-core
    • Labels:
      None

      Description

      Firebird has a problem with some of the SQL generated by Hibernate, in some queries Hibernate appends StringHelper.WHITESPACE between conditions (specifically in CollectionBinder.bindFilters(boolean)).

      The problem is that StringHelper.WHITESPACE contains a formfeed (\f, 0x0C), and Firebird does not accept a formfeed as whitespace.

      It looks like the usage of StringHelper.WHITESPACE is wrong; the other places this constant is used is for splitting/tokenizing strings, and not for adding whitespace.

      This was introduced in commit bf9b3f524d271eaf055cfda4f66a7a3acb714c0d for HHH-6781 Closed in 5.2.0.

      I will create a PR for this shortly

        Attachments

          Activity

            People

            • Assignee:
              mrotteveel Mark Rotteveel
              Reporter:
              mrotteveel Mark Rotteveel
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: