Re: greatest/least semantics different between oracle and postgres

From: "Andrej Ricnik-Bay" <andrej(dot)groups(at)gmail(dot)com>
To: "Bruno Wolff III" <bruno(at)wolff(dot)to>, pgsql-general(at)postgresql(dot)org
Subject: Re: greatest/least semantics different between oracle and postgres
Date: 2007-06-30 03:47:49
Message-ID: b35603930706292047k45dc34e1s6715c77b6fe7e0fd@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 6/30/07, Bruno Wolff III <bruno(at)wolff(dot)to> wrote:
> The following is just FYI.
> I was recently doing some stuff with greatest() on oracle (9.2.0.8.0) and
> noticed that it returned null if ANY of the arguments were null. Out of
> curiosity I checked postgres' definition of that function and found that it
> returns null only if ALL of the arguments are null.
W/o knowing the SQL standard (just from what I'd perceive
as sensible) I'd say Oracle is broken. :}

-- Cheers,
Andrej

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-06-30 04:15:42 Re: greatest/least semantics different between oracle and postgres
Previous Message Jan de Visser 2007-06-30 00:26:54 Re: Looking for help regarding getting the latest inserted sequence value.