QuerySyntaxException when use CriteriaBuilder.concat in selectCase expression

Description

Using concat inside a case clause leads to QuerySyntaxException: unexpected token: ||

It compiles in HQL like:

It looks like 'A' || 'B' expression should be wrapped with brackets, while using HQL directly with wrapped value(i.e. ('A' || 'B')) works properly.

Environment

None

Attachments

Assignee

Andrea Boriero

Reporter

Nikita Metzger

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