pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Navrátil, Ondřej <onavratil@monetplus.cz>
Cc: Peter Eisentraut <peter@eisentraut.org>
Cc: pgsql-docs@lists.postgresql.org
Subject: Re: COALESCE documentation
Date: Wed, 03 Jul 2024 16:41:19 +0200
Message-ID: <d67def4741aec22bb16a10fb7dcbae4086daf125.camel@cybertec.at> (raw)
In-Reply-To: <CAEELDapPJegiMP4O4QsC7vWeCAyjNiH7zj46HsNkuvXGwvwTdA@mail.gmail.com>
References: <CAEELDaqnn5GayihUUhnKLR1_fegb-_b2i+4_dP4U192uK7j9vw@mail.gmail.com>
	<62f888dc-1ee5-48cf-b76c-6a75dcfa8b10@eisentraut.org>
	<0c98e0da0df5780f05e3eb598bb84955450a74f8.camel@cybertec.at>
	<CAEELDapPJegiMP4O4QsC7vWeCAyjNiH7zj46HsNkuvXGwvwTdA@mail.gmail.com>

On Wed, 2024-07-03 at 11:42 +0200, Navrátil, Ondřej wrote:
> On a side note, I tested similar behavior in Oracle databases, and for them, something like 
> select testtype(null, null) is null; -- returns 0 (false)
> select testtype(null, null) is not null; -- returns 1 (true)
> ...and as far as I could test, in Oracle the IS NULL and IS NOT NULL operators are truly dual

That only goes to say that Oracle is not very standard compliant, but
I wouldn't expect anything else from a system where '' IS NULL.

Yours,
Laurenz Albe





view thread (8+ messages)  latest in thread

Message-ID: <d67def4741aec22bb16a10fb7dcbae4086daf125.camel@cybertec.at>
Permalink:  ../d67def4741aec22bb16a10fb7dcbae4086daf125.camel@cybertec.at/
Also on:    postgresql.org/message-id/d67def4741aec22bb16a10fb7dcbae4086daf125.camel@cybertec.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: laurenz.albe@cybertec.at, onavratil@monetplus.cz, peter@eisentraut.org, pgsql-docs@lists.postgresql.org
  Subject: Re: COALESCE documentation
  In-Reply-To: <d67def4741aec22bb16a10fb7dcbae4086daf125.camel@cybertec.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox