Re: Function that returns Boolean

Поиск
Список
Период
Сортировка
От Richard Broersma
Тема Re: Function that returns Boolean
Дата
Msg-id 396486430902231015l195dd4f1j68db462410e3f86c@mail.gmail.com
обсуждение исходный текст
Ответ на Function that returns Boolean  (SHARMILA JOTHIRAJAH <sharmi_jo@yahoo.com>)
Список pgsql-general
On Mon, Feb 23, 2009 at 9:39 AM, SHARMILA JOTHIRAJAH
<sharmi_jo@yahoo.com> wrote:

>    IF ( newValue != oldValue)

One good piece of advice that Tom Lane pointed out to me was:

IF ( newValue IS DISTINCT FROM oldValue )

is better due to (what may be) the unexpected results of equality
testing when NULL values are thrown into the mix.


--
Regards,
Richard Broersma Jr.

Visit the Los Angeles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug

В списке pgsql-general по дате отправления:

Предыдущее
От: Keaton Adams
Дата:
Сообщение: Product Roadmap question and request for recommendation
Следующее
От: Dot Yet
Дата:
Сообщение: Re: Product Roadmap question and request for recommendation