Per buildfarm animal woodlouse.
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")));
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")));
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")));
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")));
*/
if (arg2 == -1)
{
- if (unlikely(arg1 == INT16_MIN))
+ if (unlikely(arg1 == PG_INT16_MIN))
ereport(ERROR,
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
errmsg("smallint out of range")));
int32 arg1 = PG_GETARG_INT32(0);
int32 result;
- if (unlikely(arg1 == INT32_MIN))
+ if (unlikely(arg1 == PG_INT32_MIN))
ereport(ERROR,
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
errmsg("integer out of range")));
int16 arg1 = PG_GETARG_INT16(0);
int16 result;
- if (unlikely(arg1 == INT16_MIN))
+ if (unlikely(arg1 == PG_INT16_MIN))
ereport(ERROR,
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
errmsg("smallint out of range")));
if (!neg)
{
- if (unlikely(tmp == INT64_MIN))
+ if (unlikely(tmp == PG_INT64_MIN))
goto out_of_range;
tmp = -tmp;
}
*/
if (arg2 == -1)
{
- if (unlikely(arg1 == INT64_MIN))
+ if (unlikely(arg1 == PG_INT64_MIN))
ereport(ERROR,
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
errmsg("bigint out of range")));
int64 arg1 = PG_GETARG_INT64(0);
int64 result;
- if (unlikely(arg1 == INT64_MIN))
+ if (unlikely(arg1 == PG_INT64_MIN))
ereport(ERROR,
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
errmsg("bigint out of range")));
*/
if (arg2 == -1)
{
- if (unlikely(arg1 == INT64_MIN))
+ if (unlikely(arg1 == PG_INT64_MIN))
ereport(ERROR,
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
errmsg("bigint out of range")));
*/
if (arg2 == -1)
{
- if (unlikely(arg1 == INT64_MIN))
+ if (unlikely(arg1 == PG_INT64_MIN))
ereport(ERROR,
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
errmsg("bigint out of range")));
if (!neg)
{
- if (unlikely(val == INT64_MIN))
+ if (unlikely(val == PG_INT64_MIN))
return false;
val = -val;
}