AW: Re: [SQL] behavior of ' = NULL' vs. MySQL vs. Stand ards

Поиск
Список
Период
Сортировка
Искать
От
Zeugswetter Andreas SB
Тема
AW: Re: [SQL] behavior of ' = NULL' vs. MySQL vs. Stand ards
Дата
Msg-id
11C1E6749A55D411A9670001FA687963368310@sdexcsrv1.f000.d0188.sd.spardat.at
Список
Дерево обсуждения
Re: Re: AW: Re: [SQL] behavior of ' = NULL' vs. MySQL vs. Stand ards Thomas Lockhart <lockhart@alumni.caltech.edu>

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

Actually I am not sure whether the column = NULL syntax is even defined 
or allowed in SQL92 (e.g. Informix interprets the NULL as column name in 
this context and errs out).
If not it would simply be an extension to the standard with the defined
behavior of beeing identical to "column is null".

Andreas

В списке pgsql-hackers по дате отправления
От: Christopher Kings-Lynne
Дата:
Сообщение: Wildcards in pg_dump
От: Zeugswetter Andreas SB
Дата:
FAQ