pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Michele Bendazzoli <mickymouse@mickymouse.it>
To: pgsql <pgsql-sql@postgresql.org>
Subject: Re: Bug on parameter bigint in PL/PGSQL
Date: Fri, 22 Aug 2003 14:05:16 +0100
Message-ID: <200308221405.16739.dev@archonet.com> (raw)
In-Reply-To: <1061553594.781.34.camel@mickymouse.sintel>
References: <1061553594.781.34.camel@mickymouse.sintel>

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



view thread (4+ messages)  latest in thread

Message-ID: <200308221405.16739.dev@archonet.com>
Permalink:  ../200308221405.16739.dev@archonet.com/
Also on:    postgresql.org/message-id/200308221405.16739.dev@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, mickymouse@mickymouse.it
  Subject: Re: Bug on parameter bigint in PL/PGSQL
  In-Reply-To: <200308221405.16739.dev@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