summaryrefslogtreecommitdiff
path: root/src/backend/commands/variable.c
diff options
context:
space:
mode:
authorPeter Eisentraut2003-09-25 06:58:07 +0000
committerPeter Eisentraut2003-09-25 06:58:07 +0000
commit5165c06ca6affd46be72a9726a07375a70f7b651 (patch)
treec6a4750edcad7239e4f111c3f33045e4fd189164 /src/backend/commands/variable.c
parentc7d305ae5a1a779ccbda460e1cc45a0cac9ec4c4 (diff)
Message editing: remove gratuitous variations in message wording, standardize
terms, add some clarifications, fix some untranslatable attempts at dynamic message building.
Diffstat (limited to 'src/backend/commands/variable.c')
-rw-r--r--src/backend/commands/variable.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/backend/commands/variable.c b/src/backend/commands/variable.c
index 0517c1afbd..7b04226017 100644
--- a/src/backend/commands/variable.c
+++ b/src/backend/commands/variable.c
@@ -72,7 +72,7 @@ assign_datestyle(const char *value, bool doit, bool interactive)
if (interactive)
ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
- errmsg("invalid list syntax for datestyle")));
+ errmsg("invalid list syntax for parameter \"datestyle\"")));
return NULL;
}
@@ -158,7 +158,7 @@ assign_datestyle(const char *value, bool doit, bool interactive)
if (interactive)
ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
- errmsg("unrecognized datestyle keyword: \"%s\"",
+ errmsg("unrecognized \"datestyle\" key word: \"%s\"",
tok)));
ok = false;
break;
@@ -176,7 +176,7 @@ assign_datestyle(const char *value, bool doit, bool interactive)
if (interactive)
ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
- errmsg("conflicting datestyle specifications")));
+ errmsg("conflicting \"datestyle\" specifications")));
return NULL;
}
@@ -447,7 +447,7 @@ assign_timezone(const char *value, bool doit, bool interactive)
if (interactive)
ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
- errmsg("invalid INTERVAL for time zone: month not allowed")));
+ errmsg("invalid interval value for time zone: month not allowed")));
pfree(interval);
return NULL;
}
@@ -554,7 +554,7 @@ assign_timezone(const char *value, bool doit, bool interactive)
{
ereport(interactive ? ERROR : LOG,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
- errmsg("unrecognized timezone name: \"%s\"",
+ errmsg("unrecognized time zone name: \"%s\"",
value)));
return NULL;
}
@@ -562,9 +562,9 @@ assign_timezone(const char *value, bool doit, bool interactive)
{
ereport(interactive ? ERROR : LOG,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
- errmsg("timezone \"%s\" appears to use leap seconds",
+ errmsg("time zone \"%s\" appears to use leap seconds",
value),
- errdetail("PostgreSQL does not support leap seconds")));
+ errdetail("PostgreSQL does not support leap seconds.")));
return NULL;
}
}