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

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: [SQL] behavior of ' = NULL' vs. MySQL vs. Standards
Дата
Msg-id Pine.BSF.4.21.0106062007340.18894-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Re: [SQL] behavior of ' = NULL' vs. MySQL vs. Standards  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [SQL] behavior of ' = NULL' vs. MySQL vs. Standards  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Wed, 6 Jun 2001, Tom Lane wrote:

> 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?

It would for me.  I'd rather have the default be the spec correct behavior
and let people configure their server to follow the misinterpretation.
Is the conversion just the hack in the grammar rules for 
a_expr '=' a_expr?




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

Предыдущее
От: teg@redhat.com (Trond Eivind Glomsrød)
Дата:
Сообщение: Re: ORDER BY Problem...
Следующее
От: Bruce Momjian
Дата:
Сообщение: make check fails