mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Fix various common mispellings.
Mostly these are just comments but there are a few in documentation and a handful in code and tests. Hopefully this doesn't cause too much unnecessary pain for backpatching. I relented from some of the most common like "thru" for that reason. The rest don't seem numerous enough to cause problems. Thanks to Kevin Lyda's tool https://pypi.python.org/pypi/misspellings
This commit is contained in:
@ -3146,15 +3146,15 @@ DCH_from_char(FormatNode *node, char *in, TmFromChar *out)
|
||||
{
|
||||
int matched,
|
||||
years,
|
||||
millenia,
|
||||
millennia,
|
||||
nch;
|
||||
|
||||
matched = sscanf(s, "%d,%03d%n", &millenia, &years, &nch);
|
||||
matched = sscanf(s, "%d,%03d%n", &millennia, &years, &nch);
|
||||
if (matched < 2)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_DATETIME_FORMAT),
|
||||
errmsg("invalid input string for \"Y,YYY\"")));
|
||||
years += (millenia * 1000);
|
||||
years += (millennia * 1000);
|
||||
from_char_set_int(&out->year, years, n);
|
||||
out->yysz = 4;
|
||||
s += nch;
|
||||
|
Reference in New Issue
Block a user