Re: PL/PgSQL and NULL - Mailing list pgsql-sql

From Peter Eisentraut
Subject Re: PL/PgSQL and NULL
Date
Msg-id Pine.LNX.4.30.0103112237250.809-100000@peter.localdomain
Whole thread Raw
In response to PL/PgSQL and NULL  (Andrew Perrin <aperrin@socrates.berkeley.edu>)
Responses Re: PL/PgSQL and NULL  ("Ross J. Reedstrom" <reedstrm@rice.edu>)
List pgsql-sql
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/



pgsql-sql by date:

Previous
From: Andrew Perrin
Date:
Subject: PL/PgSQL and NULL
Next
From: "Ross J. Reedstrom"
Date:
Subject: Re: PL/PgSQL and NULL