pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: tolik@aaanet.ru
Cc: Graham Vickrage <graham@digitalplanit.com>
Cc: postgresql <pgsql-sql@postgresql.org>
Subject: Re: Null function parameters
Date: Wed, 23 Aug 2000 10:00:59 -0400
Message-ID: <27707.967039259@sss.pgh.pa.us> (raw)
In-Reply-To: <86em3gumhr.fsf@tolikus.hq.aaanet.ru>
References: <NDBBJABDILOPAOOMFJHOCEAPCEAA.graham@digitalplanit.com>
	<86em3gumhr.fsf@tolikus.hq.aaanet.ru>

tolik@aaanet.ru (Anatoly K. Lasareff) writes:
> I'afraid no. My question is: if I pass one null argument into function
> then all other argumens, which are not null, became null inside
> function body.

Yes --- and not only that, but the function's result will be taken to be
null whether you want it to be or not.  This has been gone over *many*
times before on this mail list, so I didn't think I needed to repeat it.

This will be fixed in 7.1 (is already fixed in current sources).

			regards, tom lane



view thread (7+ messages)  latest in thread

Message-ID: <27707.967039259@sss.pgh.pa.us>
Permalink:  ../27707.967039259@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27707.967039259@sss.pgh.pa.us

 · 

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 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, tolik@aaanet.ru, graham@digitalplanit.com
  Subject: Re: Null function parameters
  In-Reply-To: <27707.967039259@sss.pgh.pa.us>
  References: <NDBBJABDILOPAOOMFJHOCEAPCEAA.graham@digitalplanit.com> <86em3gumhr.fsf@tolikus.hq.aaanet.ru> <27707.967039259@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