error:

Поиск
Список
Период
Сортировка
От chetan N
Тема error:
Дата
Msg-id 24ebf2060809290638t57e73cd4hff5708b739d7a336@mail.gmail.com
обсуждение исходный текст
Ответы Re: error:  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hi,
    I am trying to pass array of elements to store procedure, as follows
 
    CREATE TYPE emptype as(
                                                name text,
                                                id integer,
                                                dob date);
 
    Function header looks like this
 
    CREATE OR REPLACE FUNCTION passingEmployeeList(employeeList emptype[])  
    RETURNS SETOF employee AS $$
 
    To execute i am using command
   
    SELECT * from passingEmployeeList(ARRAY[('chethan', 1, '10-05-1983'),('ashok', 2, '10-05-1982')]::emptype[] );
 
    I am getting error as
    ERROR:  could not find array type for data type record
 
 
Regards,
chethan

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

Предыдущее
От: Raymond O'Donnell
Дата:
Сообщение: Re: Replication using slony-I
Следующее
От: Tom Lane
Дата:
Сообщение: Re: error: