From: Richard Huxton <dev@archonet.com>
To: Picard, Cyril <cyril.picard@eads-dsn.com>
To: pgsql-sql@postgresql.org
Subject: Re: passing null parameter to plpgsq functions
Date: Tue, 3 Apr 2001 09:05:32 +0100
Message-ID: <00a701c0bc14$dc4bd920$1001a8c0@archonet.com> (raw)
References: <B5CDCF382265D311BF33009027A8FE9401E6F365@pmrmsg.edsn.com>
From: "Picard, Cyril" <cyril.picard@eads-dsn.com>
> Hello
> I wrote a plpgsql function with few parameters ; when I call the function,
> some of the parameters can be null.
> In this case, all the parameters are considered as null in the function's
> body ! is it a feature ? how can I work around this ?
It's a feature in versions before 7.1 (or possibly 7.0.x) you can still get
that behaviour in 7.1 by asking for strict null handling on a specific
function.
The only remedy AFAIK is to upgrade.
- Richard Huxton
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: dev@archonet.com, cyril.picard@eads-dsn.com
Subject: Re: passing null parameter to plpgsq functions
In-Reply-To: <00a701c0bc14$dc4bd920$1001a8c0@archonet.com>
References: <B5CDCF382265D311BF33009027A8FE9401E6F365@pmrmsg.edsn.com> <00a701c0bc14$dc4bd920$1001a8c0@archonet.com>
* 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