mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +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:
@ -2056,7 +2056,7 @@ ExecWindowAgg(PlanState *pstate)
|
||||
|
||||
if (offset < 0)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_PRECEDING_FOLLOWING_SIZE),
|
||||
(errcode(ERRCODE_INVALID_PRECEDING_OR_FOLLOWING_SIZE),
|
||||
errmsg("frame starting offset must not be negative")));
|
||||
}
|
||||
}
|
||||
@ -2081,7 +2081,7 @@ ExecWindowAgg(PlanState *pstate)
|
||||
|
||||
if (offset < 0)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_PRECEDING_FOLLOWING_SIZE),
|
||||
(errcode(ERRCODE_INVALID_PRECEDING_OR_FOLLOWING_SIZE),
|
||||
errmsg("frame ending offset must not be negative")));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user