Skip to content

fix(db-postgres): count crashes when query contains subqueries and doesn't return any rows #12273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 30, 2025

Conversation

r1tsuu
Copy link
Member

@r1tsuu r1tsuu commented Apr 30, 2025

Fixes #12264

Uses safe object access in countDistinct, fallbacks to 0

@r1tsuu r1tsuu enabled auto-merge (squash) April 30, 2025 16:50
@r1tsuu r1tsuu merged commit 4a56597 into main Apr 30, 2025
75 checks passed
@r1tsuu r1tsuu deleted the fix/undefined-count branch April 30, 2025 16:53
Copy link
Contributor

🚀 This is included in version v3.36.1

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

Successfully merging this pull request may close these issues.

payload object become undefined in certain query + access control conditions using Postgres
2 participants