X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 12E9DD1BA40 for ; Fri, 22 Aug 2003 10:06:03 -0300 (ADT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 25573-05 for ; Fri, 22 Aug 2003 10:05:35 -0300 (ADT) Received: from anchor-post-30.mail.demon.net (anchor-post-30.mail.demon.net [194.217.242.88]) by svr1.postgresql.org (Postfix) with ESMTP id 3A7D5D1DB9F for ; Fri, 22 Aug 2003 10:05:16 -0300 (ADT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-30.mail.demon.net with esmtp (Exim 3.35 #1) id 19qBbT-000JjH-0U; Fri, 22 Aug 2003 14:05:19 +0100 Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id 220E6168A4; Fri, 22 Aug 2003 14:05:18 +0100 (BST) Received: from client17.archonet.com (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 5554E168A3; Fri, 22 Aug 2003 14:05:17 +0100 (BST) From: Richard Huxton To: Michele Bendazzoli , pgsql Subject: Re: Bug on parameter bigint in PL/PGSQL Date: Fri, 22 Aug 2003 14:05:16 +0100 User-Agent: KMail/1.5 References: <1061553594.781.34.camel@mickymouse.sintel> In-Reply-To: <1061553594.781.34.camel@mickymouse.sintel> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200308221405.16739.dev@archonet.com> X-Virus-Scanned: by AMaViS snapshot-20020531 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/275 X-Sequence-Number: 14891 On Friday 22 August 2003 12:59, Michele Bendazzoli wrote: > I think i found a bug in PL/PGSQL: when i use a parameter bigint (int8) > and call the function from psql an error message which says that "the > functioname(bigint) doesn't exist" is displayed. > If i turn the int8 to int4 all works fine ... Seems ok here: CREATE FUNCTION my_bigint_test(int8) RETURNS int8 AS ' BEGIN RETURN $1 + 1::int8; END; ' LANGUAGE 'plpgsql'; SELECT my_bigint_test(1); CREATE FUNCTION my_bigint_test ---------------- 2 (1 row) SELECT my_bigint_test(2::int8); my_bigint_test ---------------- 3 (1 row) Can you provide an actual example? -- Richard Huxton Archonet Ltd