From: daq <daq@ugyvitelszolgaltato.hu>
To: pgsql-sql@postgresql.org
Subject: Re: problem with RECORD in a stored procedure
Date: Fri, 8 Mar 2002 18:53:15 +0100
Message-ID: <1746949476.20020308185315@ugyvitelszolgaltato.hu> (raw)
In-Reply-To: <200203081502.PAA28287@cs.may.ie>
References: <200203081502.PAA28287@cs.may.ie>
B is record type and you can't insert a record into a field.
You must rewrite your code like this:
FOR b IN SELECT MIN(total) as mintotal from results LOOP
INSERT INTO orla(total) VALUES(b.mintotal);
END LOOP;
DAQ
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: daq@ugyvitelszolgaltato.hu
Subject: Re: problem with RECORD in a stored procedure
In-Reply-To: <1746949476.20020308185315@ugyvitelszolgaltato.hu>
* 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