We're updating the issue view to help you get more done. 

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

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.

Environment

None

Status

Assignee

Gail Badner

Reporter

Gail Badner

Components

Fix versions

Affects versions

5.0.4

Priority

Major