pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Denis BUCHER <dbucherml@hsolutions.ch>
Cc: pgsql-sql@postgresql.org
Subject: Re: Problem with return type of function ???
Date: Thu, 22 Oct 2009 14:27:44 +0100
Message-ID: <4AE05DD0.7010809@archonet.com> (raw)
In-Reply-To: <4AE046B7.5070805@hsolutions.ch>
References: <4AE042AF.9020507@hsolutions.ch>
	<4AE044C6.8010306@archonet.com>
	<4AE046B7.5070805@hsolutions.ch>

Denis BUCHER wrote:
> Richard Huxton a écrit :
>>> ERREUR:  wrong record type supplied in RETURN NEXT
>>> CONTEXTE : PL/pgSQL function "hds_bw_find_sn_live" line 26 at return next
>>>
>>> Does someone maybe knows what it could be ?
>>>
>>> This is (a part of) my function :
>>>
>>>> CREATE OR REPLACE FUNCTION rma.find_sn_live (varchar(30)) RETURNS SETOF rma.serial_number
>> This is a different function. Function "hds_bw_find_sn_live" has the
>> wrong type for its "return next".
> 
> Hello,
> 
> Thanks a lot for your reply : the difference in name is just a mistake
> in my email but in fact it is the same function, I just renamed it wrong
> when  doing the "cleaning" before posting my email...

In that case - have you changed the definition of table
rma.serial_number since you defined the function?

-- 
  Richard Huxton
  Archonet Ltd



view thread (10+ messages)  latest in thread

Message-ID: <4AE05DD0.7010809@archonet.com>
Permalink:  ../4AE05DD0.7010809@archonet.com/
Also on:    postgresql.org/message-id/4AE05DD0.7010809@archonet.com

 · 

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: dev@archonet.com, dbucherml@hsolutions.ch
  Subject: Re: Problem with return type of function ???
  In-Reply-To: <4AE05DD0.7010809@archonet.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