|
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
|