I came across something strange about function. I have a function that has an input parameter is an array like integer[] and return json value. This input parameter is used in where clause.
When I call function I'm using input parameter like '{int1,int2,int3}' then return only result for first one int1. If I only execute sql script that is in function with same parameter in where clause, sql script return 3 rows that we need.
It seems so weird. Both of results should be same for function and sql script of function.
A function will only return more than one row if it is defined as either: