Re: [SQL] inet problem - Mailing list pgsql-sql

From D'Arcy" "J.M." Cain
Subject Re: [SQL] inet problem
Date
Msg-id m10XOZf-0000bHC@druid.net
Whole thread Raw
In response to inet problem  (Olivier BLONDEAU <olivier@blondeau.net>)
Responses Re: [SQL] inet problem
List pgsql-sql
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.


pgsql-sql by date:

Previous
From: "Randal Flagg"
Date:
Subject: external environment variable
Next
From: Olivier BLONDEAU
Date:
Subject: Re: [SQL] inet problem