Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f2a19cf

Browse files
committed
Adjust network errmsg("result is out of range") message to be consistent
with other places.
1 parent 182676a commit f2a19cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/utils/adt/network.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* PostgreSQL type definitions for the INET and CIDR types.
33
*
4-
* $PostgreSQL: pgsql/src/backend/utils/adt/network.c,v 1.66 2006/10/04 00:29:59 momjian Exp $
4+
* $PostgreSQL: pgsql/src/backend/utils/adt/network.c,v 1.67 2007/01/02 22:21:08 momjian Exp $
55
*
66
* Jon Postel RIP 16 Oct 1998
77
*/
@@ -1389,7 +1389,7 @@ internal_inetpl(inet *ip, int64 addend)
13891389
(addend == -1 && carry == 1)))
13901390
ereport(ERROR,
13911391
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
1392-
errmsg("result out of range")));
1392+
errmsg("result is out of range")));
13931393
}
13941394
ip_bits(dst) = ip_bits(ip);
13951395

@@ -1467,7 +1467,7 @@ inetmi(PG_FUNCTION_ARGS)
14671467
if ((res < 0) ? (lobyte != 0xFF) : (lobyte != 0))
14681468
ereport(ERROR,
14691469
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
1470-
errmsg("result out of range")));
1470+
errmsg("result is out of range")));
14711471
}
14721472
carry >>= 8;
14731473
byte++;

0 commit comments

Comments
 (0)