| From: | Greg Stark <gsstark(at)mit(dot)edu> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Question |
| Date: | 2003-10-15 03:08:39 |
| Message-ID: | 87fzhvjiyw.fsf@stark.dyndns.tv |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Mike Mascari <mascarm(at)mascari(dot)com> writes:
> Gaetano Mendola wrote:
>
> > vhikida(at)inreach(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | CSN | 2003-10-15 03:36:44 | PG clustering |
| Previous Message | Martijn van Oosterhout | 2003-10-15 02:28:13 | Re: Indexes? |