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

Test failure on MySQL and MariaDB because they do not allow casting as float type

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.4
    • Fix Version/s: 5.0.5
    • Component/s: testsuite
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

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

      Description

      org.hibernate.test.instrument.runtimeJavassistInstrumentationTest#testLazyBasicPropertyAccess is failing on MySQL and MariaDB because it has a property mapped as:

      {{ <property name="sizeKb" lazy="true">
      <column name="size_mb"
      read="size_mb * 1024.0"
      write="? / cast( 1024.0 as float )"/>
      </property>}}

      MySQL and MariaDB do not allow casting as float. The purpose of the test is to test lazy basic properties. The custom read/write is not important to this test so <column/> can simply be removed. Tests intended for testing custom read/write use a different mapping file.

        Attachments

          Activity

            People

            • Assignee:
              gbadner Gail Badner
              Reporter:
              gbadner Gail Badner
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: