[SQL] Using Array in Function

Поиск
Список
Период
Сортировка
От Günce Kaya
Тема [SQL] Using Array in Function
Дата
Msg-id CAAV2-mX-qXmcWaBjQYC-h3kFrqE4LObbh6WDefyeMy+PZAqwVw@mail.gmail.com
обсуждение исходный текст
Ответы Re: [SQL] Using Array in Function  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-sql
Hello,

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. 

What do you think about that? If you need I can share base of function structure. 

Regards, 
Gunce Kaya

В списке pgsql-sql по дате отправления:

Предыдущее
От: Rene Romero Benavides
Дата:
Сообщение: Re: [SQL] Get relation name form relids in postgresql
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: [SQL] Using Array in Function