Re: greatest/least semantics different between oracle and postgres
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: greatest/least semantics different between oracle and postgres |
| Дата | |
| Msg-id | 14923.1183181547@sss.pgh.pa.us обсуждение |
| Ответ на | Re: greatest/least semantics different between oracle and postgres (Ben <bench@silentmedia.com>) |
| Ответы |
Re: greatest/least semantics different between oracle and postgres
|
| Список | pgsql-general |
Ben <bench@silentmedia.com> writes:
> On Jun 29, 2007, at 9:15 PM, Tom Lane wrote:
>> Hmm ... I fear Oracle's behavior is more correct, because if any
>> argument is null (ie, unknown), then who can say what the greatest or
>> least value is? It's unknown (ie, null). But I suspect our behavior
>> is more useful. Comments?
> I agree with you. I don't know what the spec says, but it seems clear
> Oracle is doing the proper thing and Postgres is doing the useful thing.
GREATEST/LEAST aren't in the spec, so there's not much help there.
Except ... if they ever do get added to the spec, what do you think
the spec will say? The odds it'd contradict Oracle seem about nil.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера