Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-22071

org.hibernate.test.annotations.dataTypes.BasicOperationsTest fails on PostgreSQL Plus 13.1 with a ComparisonFailure

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • None
    • None
    • Hibernate
    • None
    • False
    • False
    • Undefined

    Description

      This is a clone of https://hibernate.atlassian.net/browse/HHH-14673

      Running org.hibernate.test.annotations.dataTypes.BasicOperationsTest.testCreateAndDelete on PostgreSQL Plus 13.1 results in a ComparisonFailure:

      org.junit.ComparisonFailure: ID expected:<[DATE]> but was:<[TIMESTAMP]>
          at org.junit.Assert.assertEquals(Assert.java:115)
          at org.hibernate.test.annotations.dataTypes.BasicOperationsTest$ValidateSomeEntityColumns.validateColumn(BasicOperationsTest.java:120)
          at org.hibernate.test.annotations.dataTypes.BasicOperationsTest$ValidateSomeEntityColumns.execute(BasicOperationsTest.java:97)
      

      whilst on a PostgreSQL 13.2 this issue is not present (java.util.Date is correctly mapped as java.sql.Date). There could be some difference in database drivers or dialects - unfortunately, there is a lack of knowledge from my side in order to define the possible reason.

      Environment:

      oracle-java-1.8
      postgresplus 13.1
      hibernate.dialect org.hibernate.dialect.PostgresPlusDialect
      EnterpriseDB JDBC Driver 42.2.12.3

      Attachments

        Issue Links

          Activity

            People

              rchakrab Ranabir Chakraborty
              szhantem@redhat.com Sultan Zhantemirov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: