Re: Question about Oracle compatibility

Поиск
Список
Период
Сортировка
От Don Baccus
Тема Re: Question about Oracle compatibility
Дата
Msg-id 3.0.1.32.20001128064421.017e34b0@mail.pacifier.com
обсуждение исходный текст
Ответ на Re: Question about Oracle compatibility  (Pete Forman <pete.forman@westgeo.com>)
Список pgsql-hackers
At 09:59 AM 11/28/00 +0000, Pete Forman wrote:
>Mario Weilguni writes:
> > This gets really bad when the actual data is coming from a
> > webinterface, I've to handle 2 different queries for the case empty
> > string and non-empty string.
>
>In their documentation both Oracle 7 and 8 state:
>
>    Oracle currently treats a character value with a length of zero
>    as null.  However, this may not continue to be true in future
>    releases, and Oracle recommends that you do not treat empty
>    strings the same as NULLs.

Yeah, but this is harder than it sounds!  NULL and '' are indistinguishable
in queries, so how do you treat them differently?  Has to be in the 
application code, I guess.




- Don Baccus, Portland OR <dhogaza@pacifier.com> Nature photos, on-line guides, Pacific Northwest Rare Bird Alert
Serviceand other goodies at http://donb.photo.net.
 


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

Предыдущее
От: Don Baccus
Дата:
Сообщение: Re: beta testing version
Следующее
От: Don Baccus
Дата:
Сообщение: RE: Full text Indexing -out of contrib and into main..