1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-31 22:04:40 +03:00

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
This commit is contained in:
Bruce Momjian
2021-05-01 10:42:44 -04:00
parent e6f9539dc3
commit 651d005e76
5 changed files with 22 additions and 20 deletions

View File

@ -1099,9 +1099,9 @@ SELECT *
FROM dblink('myconn',
'SELECT * FROM (VALUES (''-1 2:03:04'')) i')
AS i(i interval);
i
------------------
-1 day -02:03:04
i
-------------------
-1 days -02:03:04
(1 row)
-- Try swapping to another format to ensure the GUCs are tracked