You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fineract.apache.org by "aya-abdallah-FOO (via GitHub)" <gi...@apache.org> on 2026/07/31 08:32:18 UTC
[PR] FINERACT-2725: Fix case-insensitive LIMIT/OFFSET removal in countQueryResult [fineract]
aya-abdallah-FOO opened a new pull request, #6207:
URL: https://github.com/apache/fineract/pull/6207
Fixes FINERACT-2725.
`PaginationParameters.limitSql()` generates lowercase SQL clauses (`limit`/`offset`).
`DatabaseSpecificSQLGenerator.countQueryResult` was stripping these using
case-sensitive regex, so on PostgreSQL the LIMIT clause survived into the
`SELECT COUNT(*) FROM (...) AS temp` wrapper — causing paginated endpoints
to return a `totalFilteredRecords` value capped at the page size instead of
the true total.
Made both patterns case-insensitive (`(?i)`) and use `\s+` for whitespace.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] FINERACT-2725: Fix case-insensitive LIMIT/OFFSET removal in countQueryResult [fineract]
Posted by "aya-abdallah-FOO (via GitHub)" <gi...@apache.org>.
aya-abdallah-FOO commented on PR #6207:
URL: https://github.com/apache/fineract/pull/6207#issuecomment-5167069553
> @aya-abdallah-FOO Only test cases?
@adamsaghy I originally included both the implementation fix (making the LIMIT/OFFSET regex case-insensitive with (?i)) and the test cases in this PR. However, after rebasing on the latest develop, I noticed the implementation change disappeared from the diff ; it turns out a community contributor independently submitted the same fix which was already merged into develop. As a result, only the test cases are now visible in this PR, since the implementation is already covered by the base branch.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] FINERACT-2725: Fix case-insensitive LIMIT/OFFSET removal in countQueryResult [fineract]
Posted by "adamsaghy (via GitHub)" <gi...@apache.org>.
adamsaghy commented on PR #6207:
URL: https://github.com/apache/fineract/pull/6207#issuecomment-5166169087
@aya-abdallah-FOO Only test cases?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] FINERACT-2725: Fix case-insensitive LIMIT/OFFSET removal in countQueryResult [fineract]
Posted by "adamsaghy (via GitHub)" <gi...@apache.org>.
adamsaghy merged PR #6207:
URL: https://github.com/apache/fineract/pull/6207
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] FINERACT-2725: Fix case-insensitive LIMIT/OFFSET removal in countQueryResult [fineract]
Posted by "adamsaghy (via GitHub)" <gi...@apache.org>.
adamsaghy commented on PR #6207:
URL: https://github.com/apache/fineract/pull/6207#issuecomment-5142335431
@aya-abdallah-FOO Please rebase
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] FINERACT-2725: Fix case-insensitive LIMIT/OFFSET removal in countQueryResult [fineract]
Posted by "aya-abdallah-FOO (via GitHub)" <gi...@apache.org>.
aya-abdallah-FOO commented on PR #6207:
URL: https://github.com/apache/fineract/pull/6207#issuecomment-5142406117
> @aya-abdallah-FOO Please rebase
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org