pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: "D'Arcy" "J.M." Cain <darcy@druid.net>
To: olivier@blondeau.net
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] inet problem
Date: Wed, 14 Apr 1999 08:15:23 -0400 (EDT)
Message-ID: <m10XOZf-0000bHC@druid.net> (raw)
In-Reply-To: <199904140845.KAA02262@zeitoun.entreprises.cegetel.fr>

Thus spake Olivier BLONDEAU
>   I'm using the 6.4.2 version of PostgreSQL and I can't find the way to clear
>   a inet field.
> 
>   I have a table with 5 inet fields, and I'm unable, when one of them is set 
>   to a value, to make it null.

Can you show how it fails?  It works for me.

darcy=> create table x (i inet);
CREATE
darcy=> insert into x values ('192.168.1.2');
INSERT 63049 1
darcy=> select * from x;
          i
-----------
192.168.1.2
(1 row)

darcy=> update x set i = null;
UPDATE 1
darcy=> select * from x;
i
-
 
(1 row)

-- 
D'Arcy J.M. Cain <darcy@{druid|vex}.net>   |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 424 2871     (DoD#0082)    (eNTP)   |  what's for dinner.



view thread (3+ messages)  latest in thread

Message-ID: <m10XOZf-0000bHC@druid.net>
Permalink:  ../m10XOZf-0000bHC@druid.net/
Also on:    postgresql.org/message-id/m10XOZf-0000bHC@druid.net

 · 

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-sql@postgresql.org
  Cc: darcy@druid.net, olivier@blondeau.net
  Subject: Re: [SQL] inet problem
  In-Reply-To: <m10XOZf-0000bHC@druid.net>
  References: <199904140845.KAA02262@zeitoun.entreprises.cegetel.fr> <m10XOZf-0000bHC@druid.net>

* 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