Received: from mailout02.sul.t-online.com (mailout02.sul.t-online.com [194.25.134.17]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f2BLSwx12272 for ; Sun, 11 Mar 2001 16:28:58 -0500 (EST) (envelope-from peter_e@gmx.net) Received: from fwd02.sul.t-online.com by mailout02.sul.t-online.com with smtp id 14cDO7-0000Rs-07; Sun, 11 Mar 2001 22:28:27 +0100 Received: from peter.localdomain (520083510237-0001@[212.185.245.49]) by fmrl02.sul.t-online.com with esmtp id 14cDO1-2FWOWmC; Sun, 11 Mar 2001 22:28:21 +0100 Date: Sun, 11 Mar 2001 22:38:10 +0100 (CET) From: Peter Eisentraut To: Andrew Perrin cc: Subject: Re: PL/PgSQL and NULL In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Sender: 520083510237-0001@t-dialin.net X-Archive-Number: 200103/218 X-Sequence-Number: 1872 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/