Cannot properly initialize inet type fields in the table - Mailing list pgsql-hackers

From fimarn
Subject Cannot properly initialize inet type fields in the table
Date
Msg-id 1190814937.645410.227250@n39g2000hsh.googlegroups.com
Whole thread Raw
Responses Re: Cannot properly initialize inet type fields in the table
List pgsql-hackers
I have a CREATE TABLE statement where I am trying to initialize
several inet fields, e.g.

CREATE TABLE myConfigTable
(  telnet                bool DEFAULT
FALSE,  ftp                   bool DEFAULT
FALSE,  ipForwarding          bool DEFAULT
FALSE,  configIntControlNetw  inet DEFAULT
'1.1.0.0',  configIntControlMask  inet DEFAULT '255.255.0.0'
);

When I try to execute an INSERT statement associated with this table I
am getting:

NOTICE:  failed to convert IP address string, invalid inetstruct len
NOTICE:  failed to convert IP address string, invalid inetstruct len

for each initialized inet field.

Does anyone know how to fix this problem? This code used to work under
psql version 7.2.1, but I am trying to make it work under 8.1.4.



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Regression test message
Next
From: Tom Lane
Date:
Subject: Re: Cannot properly initialize inet type fields in the table