Re: PL/PgSQL and NULL

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: PL/PgSQL and NULL
Дата
Msg-id Pine.LNX.4.30.0103112237250.809-100000@peter.localdomain
обсуждение исходный текст
Ответ на PL/PgSQL and NULL  (Andrew Perrin <aperrin@socrates.berkeley.edu>)
Ответы Re: PL/PgSQL and NULL  ("Ross J. Reedstrom" <reedstrm@rice.edu>)
Список 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 по дате отправления:

Предыдущее
От: Andrew Perrin
Дата:
Сообщение: PL/PgSQL and NULL
Следующее
От: "Ross J. Reedstrom"
Дата:
Сообщение: Re: PL/PgSQL and NULL