
ショコラ
PostgreSQL キャストのエラーがでるようになった
「SQLSTATE[42883]: Undefined function: 7 ERROR: operator does not exist: character varying = integer LINE 1: select * from “store” where “store”.”id” in (1, 2, 3) ^ HINT: No operator matches the given name and argument types. You might need to add explicit type casts.」のエラーが出た場合の対処方法です。

もっさん先輩
CASTを登録するだけで直ります。
CREATE CAST (int4 AS text) WITH INOUT AS IMPLICIT;
CREATE CAST (text as numeric) WITH INOUT AS IMPLICIT;
以上