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

org.hibernate.test.annotations.quote.QuoteTest violates unique key constraint on some DBs

    Details

    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

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

      Description

      Two tests in QuoteTest (testQuoteManytoMany, testDoubleQuoteJoinColumn) each create one instance of User which has house3=null. House3 column has a @UniqueConstraint. On some databases, unique (without not-null) constraint allows multiple null values to be in the column, but some databases disallow it (DB2, Sybase, MSSQL..). On these databases, testQuoteManytoMany fails - it violates the constraint, because testDoubleQuoteJoinColumn persisted a User with house3=null.

        Attachments

          Issue links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: