From: | "Sebastien MAYER" <sebastien(dot)mayer(at)briosoft(dot)com> |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | BUG #2040: buggy cast of INT8 to text |
Date: | 2005-11-14 07:56:32 |
Message-ID: | 20051114075632.39F6AF0D8B@svr2.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
The following bug has been logged online:
Bug reference: 2040
Logged by: Sebastien MAYER
Email address: sebastien(dot)mayer(at)briosoft(dot)com
PostgreSQL version: 8.04
Operating system: Linux Fedora core 4
Description: buggy cast of INT8 to text
Details:
in plpgsql :
declare
var_text text;
var_int8 INT8;
begin
var_int8 := 123456;
-- next line give some strange result... but not always
var_text := 'the value of var_int8 is ' || var_int8;
....
end;
I wrote a small b_bigint_to_text(int8) returns text
and will use it until i see some fix on this.
More generally, the oid, wich is int4 does not fit the currval, nextvall etc
wich returns int8. Since you moved the serial concept from 32 bits to 64
bits (which look good to me), you still have old 32 bits style functions and
variable (oid !) mixed with the new 64 bits concept.
But, i thanks you everyday of my programmer life anyway !!!!!
seb
From | Date | Subject | |
---|---|---|---|
Next Message | sebastien mayer | 2005-11-14 08:31:31 | BUG #2041: annoyance with COPY |
Previous Message | Ramesh Nagu Tummala | 2005-11-14 06:44:47 | BUG #2039: Problem with Installation |