Using boolean or null literals results in a parser error

Description

The BNF of the JPA spec in section 4.14 allows the usage of literals but as the testcase shows, using the literals as select expression results in a parsing error.
A workaround for the NULL literal is using NULLIF(1,1). Simulating the boolean literal in a select expression requires the use of CASE WHEN 1=1 THEN true ELSE false END

Environment

None

Status

Assignee

Andrea Boriero

Reporter

Christian Beikov

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

5.2.0
5.1.0
5.0.9

Priority

Major