CastFunctionTest failing on most databases

Description

Mssql, testFloatCasting:
com.microsoft.sqlserver.jdbc.SQLServerException: Explicit conversion from data type varbinary to float is not allowed.

Mysql, testFloatCasting and testLongCasting:
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float) as col_0_0_ from MyEntity castfuncti0_' at line 1

Oracle, all tests:
java.sql.SQLSyntaxErrorException: ORA-00932: inconsistent datatypes: expected NUMBER got BINARY

Postgresql, all tests:
org.postgresql.util.PSQLException: ERROR: cannot cast type bytea to real
Position: 8

Environment

None

Status

Assignee

Steve Ebersole

Reporter

Jan Martiška

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

4.2.12

Priority

Major