|
The failures do not reproduce in 4.3. Here the comparison of SQL generated for 4.2 vs 4.3:
HQL: select cast(e.theLostNumber as float) from org.hibernate.test.hql.CastFunctionTest$MyEntity e 4.2 SQL: select cast(castfuncti0_.theLostNumber as float) as col_0_0_ from MyEntity castfuncti0_ 4.3 SQL: select cast(castfuncti0_.theLostNumber as decimal) as col_0_0_ from MyEntity castfuncti0_
HQL: select cast(e.theLostNumber as long) from org.hibernate.test.hql.CastFunctionTest$MyEntity e 4.2 SQL: select cast(castfuncti0_.theLostNumber as bigint) as col_0_0_ from MyEntity castfuncti0_ 4.3 SQL: select cast(castfuncti0_.theLostNumber as signed) as col_0_0_ from MyEntity castfuncti0_
In 4.3, the targets are changed to valid types in the generated SQL.
|