]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix error message typo.
authorTatsuo Ishii <ishii@postgresql.org>
Wed, 17 Jun 2026 03:43:07 +0000 (12:43 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Wed, 17 Jun 2026 03:43:07 +0000 (12:43 +0900)
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

src/backend/parser/parse_func.c
src/test/regress/expected/window.out

index 6717ddc6881d37799bbc95a4458a18286b6fa1e9..860767a52ee838155d074ea9ade5ca2ec879b6d2 100644 (file)
@@ -359,7 +359,7 @@ ParseFuncOrColumn(ParseState *pstate, List *funcname, List *fargs,
        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));
 
        /*
index 891b015300443e7ee351f43f0bc02ecfef2fce2c..59c3df8cf0a68ddf416f42e4c968c346d7f51502 100644 (file)
@@ -5764,11 +5764,11 @@ SELECT sum(orbit) OVER () FROM planets; -- succeeds
 (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