Deduplicate count_search and bind_filters logic #4
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: Medium
In
crates/adapters/postgres/src/catalog/mod.rs, thecount_searchmethod manually re-binds all filter parameters instead of reusing thebind_filtershelper function that exists right above it.The duplication is ~15 lines and a maintenance hazard — if a new filter is added to
bind_filtersbut not tocount_search, they'll diverge silently.