pgsql: Revert use singular for -1 (commits 9ee7d533da and 5da9868ed9

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема pgsql: Revert use singular for -1 (commits 9ee7d533da and 5da9868ed9
Дата
Msg-id E1lcqpc-0007bj-1C@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Revert use singular for -1 (commits 9ee7d533da and 5da9868ed9

Turns out you can specify negative values using plurals:

        https://english.stackexchange.com/questions/9735/is-1-followed-by-a-singular-or-plural-noun

so the previous code was correct enough, and consistent with other usage
in our code.  Also add comment in the two places where this could be
confused.

Reported-by: Noah Misch

Diagnosed-by: 20210425115726.GA2353095@rfd.leadboat.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/651d005e76bc0b9542615f609b4d0d946035dc58

Modified Files
--------------
contrib/dblink/expected/dblink.out        |  6 +++---
src/backend/utils/adt/datetime.c          |  5 +++--
src/interfaces/ecpg/pgtypeslib/interval.c |  5 +++--
src/interfaces/libpq/fe-print.c           |  4 ++--
src/test/regress/expected/interval.out    | 22 +++++++++++-----------
5 files changed, 22 insertions(+), 20 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Doc: add an example of a self-referential foreign key to ddl.sgm
Следующее
От: Alexander Korotkov
Дата:
Сообщение: pgsql: Make websearch_to_tsquery() parse text in quotes as a single tok