From: David Durst <ddurst@larubber.com>
To: pgsql-sql@postgresql.org
Subject: Question about passing User defined types to functions
Date: Thu, 30 Jan 2003 02:18:17 -0800 (PST)
Message-ID: <33664.216.86.192.34.1043921897.squirrel@www.la-rubber.com> (raw)
is there a example on how to pass user defined types into
a function??
What I am looking for is something of this nature.
CREATE TYPE dumby_type AS (dumby_id int4, dumby_name text);
create function kick_dumby(dumby dumby_type) returns INTEGER AS '
DECLARE
somenumber integer;
BEGIN
return 1;
END;
' language 'plpgsql';
Is there some way of doing this, because the above doesn't work.
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: ddurst@larubber.com
Subject: Re: Question about passing User defined types to functions
In-Reply-To: <33664.216.86.192.34.1043921897.squirrel@www.la-rubber.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