From 2e7c4abe5a88a1528236a13c9ef2e351a97fa022 Mon Sep 17 00:00:00 2001 From: Michael Paquier Date: Mon, 7 Oct 2024 12:36:00 +0900 Subject: Use camel case for "DateStyle" in some error messages This GUC is written as camel-case in most of the documentation and the GUC table (but not postgresql.conf.sample), and two error messages hardcoded it with lower case characters. Let's use a style more consistent. Most of the noise comes from the regression tests, updated to reflect the GUC name in these error messages. Author: Peter Smith Reviewed-by: Peter Eisentraut, Álvaro Herrera Discussion: https://postgr.es/m/CAHut+Pv-kSN8SkxSdoHano_wPubqcg5789ejhCDZAcLFceBR-w@mail.gmail.com --- src/backend/commands/variable.c | 2 +- src/backend/utils/adt/datetime.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend') diff --git a/src/backend/commands/variable.c b/src/backend/commands/variable.c index 27ce7d3f8fc..7df26942aff 100644 --- a/src/backend/commands/variable.c +++ b/src/backend/commands/variable.c @@ -182,7 +182,7 @@ check_datestyle(char **newval, void **extra, GucSource source) if (!ok) { - GUC_check_errdetail("Conflicting \"datestyle\" specifications."); + GUC_check_errdetail("Conflicting \"DateStyle\" specifications."); return false; } diff --git a/src/backend/utils/adt/datetime.c b/src/backend/utils/adt/datetime.c index 7abdc62f41d..600b59190e4 100644 --- a/src/backend/utils/adt/datetime.c +++ b/src/backend/utils/adt/datetime.c @@ -4107,7 +4107,7 @@ DateTimeParseError(int dterr, DateTimeErrorExtra *extra, (errcode(ERRCODE_DATETIME_FIELD_OVERFLOW), errmsg("date/time field value out of range: \"%s\"", str), - errhint("Perhaps you need a different \"datestyle\" setting."))); + errhint("Perhaps you need a different \"DateStyle\" setting."))); break; case DTERR_INTERVAL_OVERFLOW: errsave(escontext, -- cgit v1.2.3