Improve the error message in COPY with HEADER option. The error message reported for invalid values of the HEADER option in COPY command previously used the term "non-negative integer", which is discouraged by the Error Message Style Guide because it is ambiguous about whether zero is allowed.
This commit improves the error message by replacing "non-negative integer" there with "an integer value greater than or equal to zero" to make the accepted values explicit. Author: Shinya Kato <[email protected]> Reviewed-by: Alvaro Herrera <[email protected]> Reviewed-by: Steven Niu <[email protected]> Reviewed-by: Fujii Masao <[email protected]> Discussion: https://postgr.es/m/CAHGQGwE86PcuPZbP=aurmW7Oo=eycf10gxjerwq4nmy-5tt...@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/f3da70a805f9a9dd2deada728649b2cfbeae9cb3 Modified Files -------------- src/backend/commands/copy.c | 17 ++++++++++------- src/test/regress/expected/copy.out | 2 +- src/test/regress/expected/copy2.out | 2 +- 3 files changed, 12 insertions(+), 9 deletions(-)
