次のクエリがあります。
Score.where("build_id => ? AND metric_id => ? ",params[:buildIds], params[:metricIds])
ここで、params[:buildIds]、params[:metricIds] は整数の配列です。次のエラーが表示されます。
PG::Error: ERROR: operator does not exist: integer => integer
LINE 1: SELECT "scores".* FROM "scores" WHERE (build_id => 1,2 AND ...
^
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
: SELECT "scores".* FROM "scores" WHERE (build_id => 1,2 AND metric_id => 1,13 )
何か助けはありますか?
ありがとう