Hey All,
I am trying one stored procedure as follows.
CREATE OR REPLACE FUNCTION "public"."get_fees" (VARCHAR(5000)) RETURNS text[] AS
$body$
DECLARE
student_ids ALIAS FOR $1;
studetFee text[];
BEGIN
FOR studetFee IN
SELECT * FROM Student_fee WHERE student_id IN ( student_ids::VARCHAR(5000) )
LOOP
**** some ***
END LOOP;
END;
$body$
It shows me following error when i am trying this query
SELECT * FROM get_fees( '1,2,3,4,5'::VARCHAR(5000) );
ERROR: operator does not exist: dom_id = character varying at character 65
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
What might be the issue.
Thanks Rahul