pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: rikard.pavelic@zg.htnet.hr
To: pgsql-bugs@postgresql.org
Subject: BUG #6701: IS NOT NULL doesn't work on complex composites
Date: Wed, 20 Jun 2012 15:53:37 +0000
Message-ID: <E1ShNDt-00005k-8t@wrigleys.postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      6701
Logged by:          Rikard Pavelic
Email address:      rikard.pavelic@zg.htnet.hr
PostgreSQL version: 9.1.3
Operating system:   Windows 7
Description:        

create type t AS (i int);
create type complex as (t t, i int);
create table bad(i int, c complex);

insert into bad values(1, null);
insert into bad values(1, ROW(null, 2));
insert into bad values(1, ROW(ROW(1), 2));

select * from bad;
select * from bad where c is null;

--This doesn't work as expected
select * from bad where c is not null;

--Fortunately a workaround
select * from bad where NOT c is null;





view thread (14+ messages)  latest in thread

Message-ID: <E1ShNDt-00005k-8t@wrigleys.postgresql.org>
Permalink:  ../E1ShNDt-00005k-8t@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1ShNDt-00005k-8t@wrigleys.postgresql.org

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: rikard.pavelic@zg.htnet.hr
  Subject: Re: BUG #6701: IS NOT NULL doesn't work on complex composites
  In-Reply-To: <E1ShNDt-00005k-8t@wrigleys.postgresql.org>
  References: <E1ShNDt-00005k-8t@wrigleys.postgresql.org>

* 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