pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: chetan N <chetan622@gmail.com>
To: pgsql-general@postgresql.org
Subject: error:
Date: Mon, 29 Sep 2008 19:08:50 +0530
Message-ID: <24ebf2060809290638t57e73cd4hff5708b739d7a336@mail.gmail.com> (raw)

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

view thread (40+ messages)  latest in thread

Message-ID: <24ebf2060809290638t57e73cd4hff5708b739d7a336@mail.gmail.com>
Permalink:  ../24ebf2060809290638t57e73cd4hff5708b739d7a336@mail.gmail.com/
Also on:    postgresql.org/message-id/24ebf2060809290638t57e73cd4hff5708b739d7a336@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: chetan622@gmail.com
  Subject: Re: error:
  In-Reply-To: <24ebf2060809290638t57e73cd4hff5708b739d7a336@mail.gmail.com>
  References: <24ebf2060809290638t57e73cd4hff5708b739d7a336@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox