Can not use NULL values at all - Mailing list pgsql-bugs

From pgsql-bugs@postgresql.org
Subject Can not use NULL values at all
Date
Msg-id 200010271814.e9RIEFc53013@hub.org
Whole thread Raw
List pgsql-bugs
PL/pgSQL functions: NULL parameter trouble (vpryadkin@sectorbase.com) reports a bug with a severity of 1
The lower the number the more severe it is.

Short Description
Can not use NULL values at all

Long Description
If one of parameters is NULL, all another parameters
take NULL values regardless of transmitted NOT NULL values.


Sample Code
create function x (text,text,text) returns text as '
begin
 return $1;
end;
 ' language 'plpgsql';

x ('aa', 'bb', '');       -- returns 'aa', Ok
x ('aa', null, 'qq');     -- returns NULL !!!

No file was uploaded with this report

pgsql-bugs by date:

Previous
From: "rob"
Date:
Subject: Bug report #53
Next
From: Darcy Buskermolen
Date:
Subject: Re: Updating multiple bool values crashes backend