Skip site navigation (1) Skip section navigation (2)

incompatible return type for netmask(inet) function between 7.0.3 and 7.1

From: pgsql-bugs(at)postgresql(dot)org
To: pgsql-bugs(at)postgresql(dot)org
Subject: incompatible return type for netmask(inet) function between 7.0.3 and 7.1
Date: 2001-04-24 13:49:44
Message-ID: 200104241349.f3ODnie79907@hub.org (view raw or flat)
Thread:
Lists: pgsql-bugs
Vadim Passynkov (pvi(at)axxent(dot)ca) reports a bug with a severity of 4
The lower the number the more severe it is.

Short Description
incompatible return type for netmask(inet) function between 7.0.3 and 7.1

Long Description
Function netmask(inet) change return type from 7.0.3 to 7.1
In 7.0.3 return type was text, in 7.1 return type inet
Realy in 7.1 added text(inet) and of course need that
host and netmask have return type inet, but host in 7.1 still return
text.

Other problem this changes that dump code from 7.0.3 incompatible
with 7.1.

Sample Code
Version 7.0.3
template1=# \df netmask
       List of functions
 Result | Function | Arguments 
--------+----------+-----------
 text   | netmask  | inet 
(1 row)

template1=# \df host   
       List of functions
 Result | Function | Arguments 
--------+----------+-----------
 text   | host     | inet 
(1 row)

Version 7.1
template1=# \df netmask
       List of functions
 Result | Function | Arguments 
--------+----------+-----------
 inet   | netmask  | inet
(1 row)

template1=# \df host
       List of functions
 Result | Function | Arguments 
--------+----------+-----------
 text   | host     | inet
(1 row)


No file was uploaded with this report


Responses

pgsql-bugs by date

Next:From: pgsql-bugsDate: 2001-04-24 14:28:48
Subject: pg_regress hangs on parallel test
Previous:From: pgsql-bugsDate: 2001-04-24 13:31:50
Subject: 7.1 Build fails with Bash and CDPATH

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group