HQL parsing does not detect abnormal parenthesis, but silently ignores the order by clause instead. Issue detected on 5.0.2, reproductible on 5.2.6
SELECT f FROM Foo f ) ORDER BY f.bar
maven test case provided, thanks for your help
HSQL, Postgres, Oracle, Eclipse
works properly in 5.4.10.Final
Right, in 5.4.10 I get:
Error:(27, 109) java: expecting EOF, found ')'
So this must have been fixed.
(To be clear, that’s the error I get at compile time because I’m using query-validator.)