From: Peter Eisentraut <peter_e@gmx.net>
To: Andrew Perrin <aperrin@socrates.berkeley.edu>
Cc: pgsql-sql@postgresql.org
Subject: Re: PL/PgSQL and NULL
Date: Sun, 11 Mar 2001 22:38:10 +0100 (CET)
Message-ID: <Pine.LNX.4.30.0103112237250.809-100000@peter.localdomain> (raw)
In-Reply-To: <Pine.LNX.4.21.0103111536210.6221-100000@nujoma.perrins>
Andrew Perrin writes:
> I'm trying to write what should be a simple function that returns the
> minimim of two integers. The complication is that when one of the two
> integers is NULL, it should return the other; and when both are NULL, it
> should return NULL.
Functions involving NULLs don't work well before version 7.1.
--
Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/
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: peter_e@gmx.net, aperrin@socrates.berkeley.edu
Subject: Re: PL/PgSQL and NULL
In-Reply-To: <Pine.LNX.4.30.0103112237250.809-100000@peter.localdomain>
References: <Pine.LNX.4.21.0103111536210.6221-100000@nujoma.perrins> <Pine.LNX.4.30.0103112237250.809-100000@peter.localdomain>
* 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