Skip to content

JM: fix cursor pagination with NULL values#43

Merged
wmertens merged 3 commits intomasterfrom
cursor-pagination-fix
Aug 31, 2025
Merged

JM: fix cursor pagination with NULL values#43
wmertens merged 3 commits intomasterfrom
cursor-pagination-fix

Conversation

@marcinmosiejko
Copy link
Contributor

Extends COALESCE handling from falsyBool columns to all nullable real columns to prevent NULL comparison issues in cursor WHERE clauses

@marcinmosiejko marcinmosiejko requested a review from wmertens August 5, 2025 16:07
@marcinmosiejko marcinmosiejko self-assigned this Aug 5, 2025
Extends COALESCE handling from falsyBool columns to all nullable
real columns to prevent NULL comparison issues in cursor WHERE clauses
@marcinmosiejko marcinmosiejko force-pushed the cursor-pagination-fix branch from 802340e to 05ffa89 Compare August 5, 2025 16:08
Copy link
Collaborator

@wmertens wmertens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@marcinmosiejko marcinmosiejko force-pushed the cursor-pagination-fix branch 2 times, most recently from 1a6917f to bf6b0e4 Compare August 6, 2025 08:30
@marcinmosiejko marcinmosiejko force-pushed the cursor-pagination-fix branch from bf6b0e4 to 9ee8be2 Compare August 6, 2025 08:35
Replace timing-dependent test with robust Promise.allSettled approach
that handles all possible race condition outcomes gracefully.

- Test now verifies system consistency rather than exact timing
- Handles both scenarios: changeId first vs set first
- Eliminates CI flakiness while maintaining test coverage
@marcinmosiejko marcinmosiejko requested a review from wmertens August 6, 2025 08:50
@wmertens wmertens merged commit 00e5a3e into master Aug 31, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants