Count query is created incorrectly when selecting new objects [DATAJPA-1587] #1895
Labels
in: query-parser
Everything related to parsing JPQL or SQL
status: duplicate
A duplicate of another issue
type: bug
A general bug
Jeroen Hendrickx opened DATAJPA-1587 and commented
When I create a query that selects a new Object using a Pageable, the generated count query is incorrect.
E.g. the following query:
Generated the following count query:
In release 2.1.9 the generated query was
which is the correct query.
It looks like this is a side effect from the changes requested in DATAJPA-1564.
Note, if I change the query and start it with a space, the count query is generated properly.
i've managed to write some tests on this in the org.springframework.data.jpa.repository.query.QueryTest:
This test passes:
While this test fails:
Affects: 2.1.10 (Lovelace SR10)
Issue Links:
("is duplicated by")
1 votes, 1 watchers
The text was updated successfully, but these errors were encountered: