If multiple filters are provided for a particular column, only the last filter is applied in the query. All the previous ones are overwritten. This happens here in the FilterBuilder implementation (for all operators).
// Table has a column 'year' with values 2020, 2022, 2024.
client.From("mytable").Select("*", "exact", false).gte("year", 2023).lte("year", 2024).Execute()
// Results include 2020, 2022, 2024. Expected only 2024.
Expected behavior
Multiple filters for a given column should all be applied.
Bug report
Describe the bug
If multiple filters are provided for a particular column, only the last filter is applied in the query. All the previous ones are overwritten. This happens here in the FilterBuilder implementation (for all operators).
If we take a look at the other Supabase PostgREST implementations, they append additional filters instead (eg. here in postgrest-dart, here in postgREST-js).
To Reproduce
Expected behavior
Multiple filters for a given column should all be applied.
System information