pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexey Dashevsky <alex@kpgaz.chernigov.ua>
To: pgsql-sql@postgresql.org
Subject: Re: numeric fields and null
Date: Fri, 23 May 2003 08:51:49 +0300
Message-ID: <20030523055146.7929619327@kpgaz.chernigov.ua> (raw)
In-Reply-To: <20030522152454.P46888-100000@megazone23.bigpanda.com>
References: <20030522152454.P46888-100000@megazone23.bigpanda.com>

> > adhoc=# update users set postaladdressid=null where id=50;
> > UPDATE 1
> >
> > adhoc=# select id,postaladdressid from users where postaladdressid=null;
> >  id | postaladdressid
> > ----+-----------------
> > (0 rows)
> >
> > Why did it not select record 50?
>
> Because NULL=NULL is not true (it's unknown).  Use IS NULL if you want to
> see if something is NULL.

If in postgresql.conf set parameter    transform_null_equals=TRUE  ????



view thread (8+ messages)

Message-ID: <20030523055146.7929619327@kpgaz.chernigov.ua>
Permalink:  ../20030523055146.7929619327@kpgaz.chernigov.ua/
Also on:    postgresql.org/message-id/20030523055146.7929619327@kpgaz.chernigov.ua

 · 

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-sql@postgresql.org
  Cc: alex@kpgaz.chernigov.ua
  Subject: Re: numeric fields and null
  In-Reply-To: <20030523055146.7929619327@kpgaz.chernigov.ua>

* 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