Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id ECEF36321BE for ; Thu, 22 Oct 2009 10:27:59 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 54277-05 for ; Thu, 22 Oct 2009 13:27:41 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from relay.ptn-ipout01.plus.net (relay.ptn-ipout01.plus.net [212.159.7.35]) by mail.postgresql.org (Postfix) with ESMTP id 22117633A50 for ; Thu, 22 Oct 2009 10:27:48 -0300 (ADT) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAIP630pUXebz/2dsb2JhbADbQYQ/BA Received: from relay02.plus.net ([84.93.230.243]) by relay.ptn-ipout01.plus.net with ESMTP; 22 Oct 2009 14:27:45 +0100 Received: from [84.51.143.99] (helo=server3.office.archonet.com) by relay02.plus.net with esmtp (Exim) id 1N0xhg-00061o-SP; Thu, 22 Oct 2009 14:27:44 +0100 Received: from [192.168.1.36] (dell36.office.archonet.com [192.168.1.36]) by server3.office.archonet.com (Postfix) with ESMTPA id A26CD410008; Thu, 22 Oct 2009 14:27:44 +0100 (BST) Message-ID: <4AE05DD0.7010809@archonet.com> Date: Thu, 22 Oct 2009 14:27:44 +0100 From: Richard Huxton User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Denis BUCHER CC: pgsql-sql@postgresql.org Subject: Re: Problem with return type of function ??? References: <4AE042AF.9020507@hsolutions.ch> <4AE044C6.8010306@archonet.com> <4AE046B7.5070805@hsolutions.ch> In-Reply-To: <4AE046B7.5070805@hsolutions.ch> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Plusnet-Relay: 07fd273ecd9a55b75c21b9d76c94f561 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.36 tagged_above=-10 required=5 tests=AWL=0.239, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200910/98 X-Sequence-Number: 33297 Denis BUCHER wrote: > Richard Huxton a =E9crit : >>> 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 SE= TOF rma.serial_number >> This is a different function. Function "hds_bw_find_sn_live" has the >> wrong type for its "return next". >=20 > Hello, >=20 > 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 wron= g > 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? --=20 Richard Huxton Archonet Ltd