From 387543f7bdf0f1ca3dc06e6bb5c9ef7980cf9f44 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 11 Jun 2018 11:15:28 -0400 Subject: Make new error code name match SQL standard more closely Discussion: https://www.postgresql.org/message-id/dff3d555-bea4-ac24-29b2-29521b9d08e8%402ndquadrant.com --- src/backend/utils/adt/int.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/backend/utils/adt/int.c') diff --git a/src/backend/utils/adt/int.c b/src/backend/utils/adt/int.c index 559c365fecd..02783d8d6fe 100644 --- a/src/backend/utils/adt/int.c +++ b/src/backend/utils/adt/int.c @@ -608,7 +608,7 @@ in_range_int4_int4(PG_FUNCTION_ARGS) if (offset < 0) ereport(ERROR, - (errcode(ERRCODE_INVALID_PRECEDING_FOLLOWING_SIZE), + (errcode(ERRCODE_INVALID_PRECEDING_OR_FOLLOWING_SIZE), errmsg("invalid preceding or following size in window function"))); if (sub) @@ -655,7 +655,7 @@ in_range_int4_int8(PG_FUNCTION_ARGS) if (offset < 0) ereport(ERROR, - (errcode(ERRCODE_INVALID_PRECEDING_FOLLOWING_SIZE), + (errcode(ERRCODE_INVALID_PRECEDING_OR_FOLLOWING_SIZE), errmsg("invalid preceding or following size in window function"))); if (sub) @@ -690,7 +690,7 @@ in_range_int2_int4(PG_FUNCTION_ARGS) if (offset < 0) ereport(ERROR, - (errcode(ERRCODE_INVALID_PRECEDING_FOLLOWING_SIZE), + (errcode(ERRCODE_INVALID_PRECEDING_OR_FOLLOWING_SIZE), errmsg("invalid preceding or following size in window function"))); if (sub) -- cgit v1.2.3