Case/when in criteria with string literal result fails type checking

Description

The strings in the criteria query are always transformed into parameters, even if you use CriteriaBuiler#literal(). This implicit parameter binding mechanism of all literals in criteria queries conflicts with the type checking in the SearchedCaseNode. The ParameterNode doesn't carry any data type information.

Ugly workaround, forcing creation of LiteralNode:

Environment

None

Status

Assignee

Andrea Boriero

Reporter

Christian Bauer

Fix versions

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure