Commit f2a19cf3 authored by Bruce Momjian's avatar Bruce Momjian

Adjust network errmsg("result is out of range") message to be consistent

with other places.
parent 182676ae
/* /*
* PostgreSQL type definitions for the INET and CIDR types. * PostgreSQL type definitions for the INET and CIDR types.
* *
* $PostgreSQL: pgsql/src/backend/utils/adt/network.c,v 1.66 2006/10/04 00:29:59 momjian Exp $ * $PostgreSQL: pgsql/src/backend/utils/adt/network.c,v 1.67 2007/01/02 22:21:08 momjian Exp $
* *
* Jon Postel RIP 16 Oct 1998 * Jon Postel RIP 16 Oct 1998
*/ */
...@@ -1389,7 +1389,7 @@ internal_inetpl(inet *ip, int64 addend) ...@@ -1389,7 +1389,7 @@ internal_inetpl(inet *ip, int64 addend)
(addend == -1 && carry == 1))) (addend == -1 && carry == 1)))
ereport(ERROR, ereport(ERROR,
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE), (errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
errmsg("result out of range"))); errmsg("result is out of range")));
} }
ip_bits(dst) = ip_bits(ip); ip_bits(dst) = ip_bits(ip);
...@@ -1467,7 +1467,7 @@ inetmi(PG_FUNCTION_ARGS) ...@@ -1467,7 +1467,7 @@ inetmi(PG_FUNCTION_ARGS)
if ((res < 0) ? (lobyte != 0xFF) : (lobyte != 0)) if ((res < 0) ? (lobyte != 0xFF) : (lobyte != 0))
ereport(ERROR, ereport(ERROR,
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE), (errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
errmsg("result out of range"))); errmsg("result is out of range")));
} }
carry >>= 8; carry >>= 8;
byte++; byte++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment