1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-13 07:41:39 +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 @@ 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")));