Skip to content

fix: honor take(0) with joins - #12722

Open
GiHoon1123 wants to merge 2 commits into
typeorm:masterfrom
GiHoon1123:fix/take-zero-with-joins
Open

fix: honor take(0) with joins#12722
GiHoon1123 wants to merge 2 commits into
typeorm:masterfrom
GiHoon1123:fix/take-zero-with-joins

Conversation

@GiHoon1123

Copy link
Copy Markdown

take(0) was skipped by the join pagination check because 0 is falsy.

Use null checks so take(0) enters the pagination path, and cover both take(0) and skip(0) with join regression tests.

Fixes #12666

@github-actions github-actions Bot added linked-issue PR references an issue possible-duplicate PR may duplicate an existing open PR labels Jul 20, 2026
@github-actions

Copy link
Copy Markdown

Other open PRs also reference #12666: #12685,#12687. Maintainers may want to coordinate.

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) πŸ“˜ Rule violations (0) πŸ“Ž Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

  • Author self-review: I have reviewed the code review findings, and addressed the relevant ones.

Qodo Logo

@GiHoon1123

Copy link
Copy Markdown
Author

Just checking in on this one. No rush at all, and I'd be happy to make any updates if there's anything else needed from my side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

linked-issue PR references an issue possible-duplicate PR may duplicate an existing open PR

Development

Successfully merging this pull request may close these issues.

take(0) combined with a join returns ALL rows instead of an empty array

1 participant