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

SequenceHiLoGeneratorTest fails due to wrong select string on SQL Server

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.4, 5.2.7
    • Fix Version/s: 5.2.8, 5.1.5
    • Component/s: testsuite
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • backPortable:
      Backport?
    • Last commented by a user?:
      true

      Description

      Mssql database has sys.sequences table. However test run this statement that causes failures when db is case-sensitive.

      SELECT CONVERT(varchar(200), Current_value) FROM SYS.Sequences WHERE name
      

      Moreover if this fails, the test leaks an open session. this causes problems if the database is configured so that a user can login only once at a time, because subsequent tests are unable to login.

        Attachments

          Issue links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: