From: Tom Lane <tgl@sss.pgh.pa.us>
To: chetan N <chetan622@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: error:
Date: Mon, 29 Sep 2008 09:55:35 -0400
Message-ID: <11300.1222696535@sss.pgh.pa.us> (raw)
In-Reply-To: <24ebf2060809290638t57e73cd4hff5708b739d7a336@mail.gmail.com>
References: <24ebf2060809290638t57e73cd4hff5708b739d7a336@mail.gmail.com>
"chetan N" <chetan622@gmail.com> writes:
> CREATE TYPE emptype as(
> name text,
> id integer,
> dob date);
> SELECT * from passingEmployeeList(ARRAY[('chethan', 1,
> '10-05-1983'),('ashok', 2, '10-05-1982')]::emptype[] );
> ERROR: could not find array type for data type record
That does work in CVS HEAD, but in existing releases you'll need to
spell the array constructor like this:
ARRAY[('chethan', 1,'10-05-1983')::emptype, ('ashok', 2, '10-05-1982')::emptype]
8.3 and before try to determine the array type too soon --- casting the
result of the constructor doesn't help them.
regards, tom lane
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: tgl@sss.pgh.pa.us, chetan622@gmail.com
Subject: Re: error:
In-Reply-To: <11300.1222696535@sss.pgh.pa.us>
References: <24ebf2060809290638t57e73cd4hff5708b739d7a336@mail.gmail.com> <11300.1222696535@sss.pgh.pa.us>
* 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