| From: | Richard Huxton <dev(at)archonet(dot)com> |
|---|---|
| To: | Michele Bendazzoli <mickymouse(at)mickymouse(dot)it>, pgsql <pgsql-sql(at)postgresql(dot)org> |
| Subject: | Re: Bug on parameter bigint in PL/PGSQL |
| Date: | 2003-08-22 13:05:16 |
| Message-ID: | 200308221405.16739.dev@archonet.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michele Bendazzoli | 2003-08-22 14:24:27 | Re: Bug on parameter bigint in PL/PGSQL |
| Previous Message | Bertrand Petit | 2003-08-22 13:04:12 | Re: "SELECT IN" Still Broken in 7.4b |