Closed gburgett closed 3 years ago
Postgres store casts numeric values to ::text in the _eq query
::text
_eq
# lib/wcc/contentful/store/postgres_store.rb def _eq(path, expected, params) ... " AND t.data->#{quote_parameter_path(path)}" \ " ? $#{push_param(expected, params)}::text" end
This causes a find_by against a numeric value to never match.
find_by
Postgres store casts numeric values to
::text
in the_eq
queryThis causes a
find_by
against a numeric value to never match.