Re: Problem with return type of function ???

From: Denis BUCHER <dbucherml(at)hsolutions(dot)ch>
To: Richard Huxton <dev(at)archonet(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Problem with return type of function ???
Date: 2009-10-22 13:29:57
Message-ID: 4AE05E55.4000500@hsolutions.ch
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hello Richard,

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?

No, I just do the test just after the "CREATE OR REPLACE FUNCTION".

I saw somwhere it could be the order of the fields ?

Denis

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Huxton 2009-10-22 13:46:09 Re: Problem with return type of function ???
Previous Message Richard Huxton 2009-10-22 13:27:44 Re: Problem with return type of function ???