Re: [SQL] behavior of ' = NULL' vs. MySQL vs. Standards

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [SQL] behavior of ' = NULL' vs. MySQL vs. Standards
Дата
Msg-id 6689.991880382@sss.pgh.pa.us
обсуждение исходный текст
Ответы Re: [SQL] behavior of ' = NULL' vs. MySQL vs. Standards  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Re: Re: [SQL] behavior of ' = NULL' vs. MySQL vs. Standards  (Tom Ivar Helbekkmo <tih@kpnQwest.no>)
Список pgsql-hackers
Stephan Szabo <sszabo@megazone23.bigpanda.com> writes:
> Yes, column = NULL should *never* return true according to the spec (it
> should always return NULL in fact as stated).  The reason for breaking
> with the spec is AFAIK to work with broken microsoft clients that seem to
> think that =NULL is a meaningful test and generate queries using that.

Microsoft Access is the guilty party, IIRC.  I recently tried to stir up
some interest in changing this behavior back to the standard, but
apparently there are still too many people using broken versions of
Access.

A compromise answer might be to offer a SET variable that selects the
Microsoft-compatible misimplementation.  Would that fly?
        regards, tom lane


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

Предыдущее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: RE: ORDER BY Problem...
Следующее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: RE: place for newbie postgresql hackers to work