pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Horváth Imre <horvath.imre@blemidon.hu>
Cc: pgsql-sql@postgresql.org
Subject: Re: plpgsql out parameter with select into
Date: Wed, 18 Aug 2010 18:09:58 -0400
Message-ID: <14560.1282169398@sss.pgh.pa.us> (raw)
In-Reply-To: <AANLkTi=F46H7BqASW4dLGGx3yn0nL95dES8UKbaeyudb@mail.gmail.com>
References: <1282070709.3269.3.camel@cytherian.blemidon.dyndns.org>
	<AANLkTi=YT1cYTeu0JbN_0ZYBjN-jyrA6fpRDuQcX95xN@mail.gmail.com>
	<1282142717.2734.1.camel@cytherian.blemidon.dyndns.org>
	<AANLkTi=F46H7BqASW4dLGGx3yn0nL95dES8UKbaeyudb@mail.gmail.com>

> 2010/8/18 Horváth Imre <horvath.imre@blemidon.hu>:
>> It don't work...

A function returning a scalar type cannot control the column name
assigned to the scalar in the calling query.  To do that, you need to
return a composite type, which means there need to be at least two OUT
parameters if you're trying to do it via OUT-parameter names.

			regards, tom lane



view thread (9+ messages)  latest in thread

Message-ID: <14560.1282169398@sss.pgh.pa.us>
Permalink:  ../14560.1282169398@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/14560.1282169398@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, horvath.imre@blemidon.hu
  Subject: Re: plpgsql out parameter with select into
  In-Reply-To: <14560.1282169398@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