4e5920e6de8 added an ereport call with the primary error message
starting with upper case, which is prohibited by our error message
style guide. This commit fixes it.
Author: Chao Li <li.evan.chao@gmail.com>
Reviewed-by: Tatsuo Ishii <ishii@postgresql.org>
Discussion: https://postgr.es/m/
8BACA715-B9B6-479D-9153-
C05F05482664%40gmail.com
if (fdresult != FUNCDETAIL_WINDOWFUNC && ignore_nulls != NO_NULLTREATMENT)
ereport(ERROR,
errcode(ERRCODE_WRONG_OBJECT_TYPE),
- errmsg("Only window functions accept RESPECT/IGNORE NULLS"),
+ errmsg("only window functions accept RESPECT/IGNORE NULLS"),
parser_errposition(pstate, location));
/*
(10 rows)
SELECT sum(orbit) RESPECT NULLS OVER () FROM planets; -- fails
-ERROR: Only window functions accept RESPECT/IGNORE NULLS
+ERROR: only window functions accept RESPECT/IGNORE NULLS
LINE 1: SELECT sum(orbit) RESPECT NULLS OVER () FROM planets;
^
SELECT sum(orbit) IGNORE NULLS OVER () FROM planets; -- fails
-ERROR: Only window functions accept RESPECT/IGNORE NULLS
+ERROR: only window functions accept RESPECT/IGNORE NULLS
LINE 1: SELECT sum(orbit) IGNORE NULLS OVER () FROM planets;
^
SELECT row_number() OVER () FROM planets; -- succeeds