From: Tom Lane <tgl@sss.pgh.pa.us>
To: Radek Kanovsky <radekk@uh.cz>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] create function(date,date,date,...)
Date: Sat, 25 Sep 1999 18:46:50 -0400
Message-ID: <12025.938299610@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.3.96.990925193818.18476s-100000@rk.uh.cz>
Radek Kanovsky <radekk@uh.cz> writes:
> It happens that when some argument is NULL, than all argument get NULL.
> It works correctly only when all arguments are not NULL.
> How can I mix NULL and DATE values in arguments?
Right now, you can't. The function-call interface inside Postgres
is misdesigned (in several ways, but the one that's important here
is that only one argument-is-NULL flag gets passed to the function
from the expression evaluator).
Fixing this is on the to-do list, and should get done for 6.6 or 6.7.
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, radekk@uh.cz
Subject: Re: [SQL] create function(date,date,date,...)
In-Reply-To: <12025.938299610@sss.pgh.pa.us>
References: <Pine.LNX.3.96.990925193818.18476s-100000@rk.uh.cz> <12025.938299610@sss.pgh.pa.us>
* 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