case/when in criteria always casts resulting object which fails on mysql with boolean

Description

test o.h.jpa.test.criteria.simplecase.BasicSimpleCaseTest#testCaseLiteralResult2 fails on mysql/mariadb

cast to bit isn't supported in mysql/mariadb - https://mariadb.com/kb/en/mariadb/convert/

possible workaround is to enclose resulting object in literal

this fails:

this passes:

Environment

mysql/mariadb

Assignee

Gail Badner

Reporter

Martin Simka

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure