1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-11 20:28:21 +03:00

Consistently use PG_INT(16|32|64)_(MIN|MAX).

Per buildfarm animal woodlouse.
This commit is contained in:
Andres Freund
2017-12-12 18:15:22 -08:00
parent 4c6744ed70
commit f512a6e132
7 changed files with 13 additions and 13 deletions

View File

@ -101,7 +101,7 @@ cash_dist(PG_FUNCTION_ARGS)
Cash ra;
if (pg_sub_s64_overflow(a, b, &r) ||
r == INT64_MIN)
r == PG_INT64_MIN)
ereport(ERROR,
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
errmsg("money out of range")));

View File

@ -100,7 +100,7 @@ int2_dist(PG_FUNCTION_ARGS)
int16 ra;
if (pg_sub_s16_overflow(a, b, &r) ||
r == INT16_MIN)
r == PG_INT16_MIN)
ereport(ERROR,
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
errmsg("smallint out of range")));

View File

@ -101,7 +101,7 @@ int4_dist(PG_FUNCTION_ARGS)
int32 ra;
if (pg_sub_s32_overflow(a, b, &r) ||
r == INT32_MIN)
r == PG_INT32_MIN)
ereport(ERROR,
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
errmsg("integer out of range")));

View File

@ -101,7 +101,7 @@ int8_dist(PG_FUNCTION_ARGS)
int64 ra;
if (pg_sub_s64_overflow(a, b, &r) ||
r == INT64_MIN)
r == PG_INT64_MIN)
ereport(ERROR,
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
errmsg("bigint out of range")));