mirror of
https://github.com/bitechdev/ResolveSpec.git
synced 2026-09-15 21:02:35 +00:00
Same class of bug as the restheadspec/resolvespec fix: these handlers unconditionally rendered CAST(col AS TEXT) LIKE/ILIKE for every column, which flips a citext column to case-sensitive matching and defeats a citext index. Thread the model through to buildFilterCondition/applyFilters so reflection.IsCitextColumn can skip the cast for citext columns. resolvemcp's eq/neq/gt/lt paths never cast (they never had the restheadspec-style reflect.Kind cast heuristic), so this only touches LIKE/ILIKE. funcspec is unaffected: it has no Go struct model to check against (colname/value come straight from SQL function parameters).