Skip to content

Sorting by function result not possible if function contains parameter and Sort.by is used [DATAJPA-1750] #2045

Closed
@spring-projects-issues

Description

@spring-projects-issues

simonparadies opened DATAJPA-1750 and commented

The FUNCTION_PATTERN regex in QueryUtils does not match functions containing positional or named parameters. Therefore, in these cases, the order by clause is constructed using the entities' qualifier, which leads to an incorrect expression


Affects: 2.4 M1 (2020.0.0)

Referenced from: pull request #425

Metadata

Metadata

Labels

in: query-parserEverything related to parsing JPQL or SQLtype: bugA general bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions