From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mario Alberto Soto Cordones <mario_soto@venezolanadeavaluos.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: PROBLEM WITH FUNCTION
Date: Sun, 02 May 2004 23:18:13 -0400
Message-ID: <4040.1083554293@sss.pgh.pa.us> (raw)
In-Reply-To: <48856.200.31.137.181.1083524475.squirrel@mail.venezolanadeavaluos.com>
References: <48856.200.31.137.181.1083524475.squirrel@mail.venezolanadeavaluos.com>
"Mario Alberto Soto Cordones" <mario_soto@venezolanadeavaluos.com> writes:
> CREATE OR REPLACE FUNCTION "public"."contador_distrito_activos" (numeric,
> numeric, numeric) RETURNS SETOF "public"."ty_activo" AS'
> declare
> con bigint;
> act bigint;
> ...
> return con , act;
plpgsql has no shorthand for constructing a rowtype result, as you seem
to be expecting here. Declare a variable of type ty_activo, fill it in,
and return it.
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, mario_soto@venezolanadeavaluos.com
Subject: Re: PROBLEM WITH FUNCTION
In-Reply-To: <4040.1083554293@sss.pgh.pa.us>
References: <48856.200.31.137.181.1083524475.squirrel@mail.venezolanadeavaluos.com> <4040.1083554293@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