pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedtrouble with null
2+ messages / 2 participants
[nested] [flat]
* trouble with null
@ 2000-04-18 08:13 Alexander Stetsenko <as@anapa.org.ru>
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Stetsenko @ 2000-04-18 08:13 UTC (permalink / raw)
To: pgsql-sql
Hello all
I try to call such plpgsql function : do_something(int,int,date)
All works if I call do_something(1,4,'01-01-2000');
but if do_something(1,4,null) then inside function $1 and $2 is null
Why ? :-(
Thank you !!!
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: trouble with null
@ 2000-04-18 14:04 Tom Lane <tgl@sss.pgh.pa.us>
parent: Alexander Stetsenko <as@anapa.org.ru>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2000-04-18 14:04 UTC (permalink / raw)
To: Alexander Stetsenko <as@anapa.org.ru>; +Cc: pgsql-sql
Alexander Stetsenko <as@anapa.org.ru> writes:
> I try to call such plpgsql function : do_something(int,int,date)
> All works if I call do_something(1,4,'01-01-2000');
> but if do_something(1,4,null) then inside function $1 and $2 is null
Deficiency in the function-manager design: there's only one NULL flag
for all of the inputs :-(. What's worse, if any of the inputs are NULL
then the function's result will be taken as NULL no matter what you
return!
This will require a major code overhaul to fix; it's currently planned
to happen for 7.1.
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2000-04-18 14:04 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-04-18 08:13 trouble with null Alexander Stetsenko <as@anapa.org.ru>
2000-04-18 14:04 ` Tom Lane <tgl@sss.pgh.pa.us>
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