order by ignored

Description

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

Environment

HSQL, Postgres, Oracle, Eclipse

Activity

Show:
Marek Chodak
January 22, 2020, 6:52 PM

works properly in 5.4.10.Final

Gavin King
January 23, 2020, 7:05 PM

Right, in 5.4.10 I get:

Error:(27, 109) java: expecting EOF, found ')'

So this must have been fixed.

Gavin King
January 23, 2020, 7:06 PM

(To be clear, that’s the error I get at compile time because I’m using query-validator.)

Assignee

Unassigned

Reporter

Pierre Meyer

Fix versions

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

Affirmative

Pull Request

None

backportDecision

None

Affects versions

Priority

Critical
Configure