Skip to content

fix(postgrest): keep the test of a ternary in Where filters - #422

Merged
Tr00d merged 2 commits into
supabase:masterfrom
fresh55:fix/where-ternary
Sep 9, 2026
Merged

Tr00d merged 2 commits into
supabase:masterfrom
fresh55:fix/where-ternary

Conversation

@fresh55

@fresh55 fresh55 commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Fixes #415

Where had no VisitConditional so a ternary dropped its test. Now visited as (test && a) || (!test && b).

@Tr00d
Tr00d merged commit f4fc450 into supabase:master Sep 9, 2026
1 check 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.

bug(postgrest): Where() with ternary drops the condition

2 participants