Re: Question - Mailing list pgsql-general

From Greg Stark
Subject Re: Question
Date
Msg-id 87fzhvjiyw.fsf@stark.dyndns.tv
Whole thread Raw
In response to Re: Question  (Mike Mascari <mascarm@mascari.com>)
List pgsql-general
Mike Mascari <mascarm@mascari.com> writes:

> Gaetano Mendola wrote:
>
> > vhikida@inreach.com wrote:
> >
> >> If you are experienced in Oracle, this might be confusing since Oracle
> >> treats empty string and NULL as being the same.
> >
> >
> > Really? I don't believe it.
>
> It is insane, but true.

Uh, yeah, but I think that results in the same behaviour for the case at hand.

ie on oracle this is still holds:

 NULL LIKE '%foo%' => NULL

The idiocy is that Oracle does this:

 '' LIKE '%foo%' => NULL

because it treats '' as if you had NULL, ie, equivalent to the example above.

--
greg

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Indexes?
Next
From: CSN
Date:
Subject: PG clustering