mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +03:00
Make new error code name match SQL standard more closely
Discussion: https://www.postgresql.org/message-id/dff3d555-bea4-ac24-29b2-29521b9d08e8%402ndquadrant.com
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user