forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit495cadd
committed
Further cleanup of JSON-specific error messages.
Fix an obvious typo in json_build_object()'s complaint about invalidnumber of arguments, and make the errhint a bit more sensible too.Per discussion about how to word the improved hint, change the few placesin the documentation that refer to JSON object field names as "names" tosay "keys" instead, since that's what we've said in the vast majority ofplaces in the docs. Arguably "name" is more correct, since that's theterminology used in RFC 7159; but we're stuck with "key" in view of thenaming of json_object_keys() so let's at least be self-consistent.I adjusted a few code comments to match this as well, and failed toresist the temptation to clean up some odd whitespace choices in thesame area, as well as a useless duplicate PG_ARGISNULL() check. There'sstill quite a bit of code that uses the phrase "field name" in non-user-visible ways, so I left those usages alone.1 parent9da8675 commit495cadd
2 files changed
+15
-23
lines changedLines changed: 6 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10317 | 10317 |
| |
10318 | 10318 |
| |
10319 | 10319 |
| |
10320 |
| - | |
| 10320 | + | |
10321 | 10321 |
| |
10322 | 10322 |
| |
10323 | 10323 |
| |
| |||
10329 | 10329 |
| |
10330 | 10330 |
| |
10331 | 10331 |
| |
10332 |
| - | |
| 10332 | + | |
10333 | 10333 |
| |
10334 |
| - | |
| 10334 | + | |
10335 | 10335 |
| |
10336 | 10336 |
| |
10337 | 10337 |
| |
| |||
10715 | 10715 |
| |
10716 | 10716 |
| |
10717 | 10717 |
| |
10718 |
| - | |
10719 |
| - | |
10720 |
| - | |
| 10718 | + | |
| 10719 | + | |
| 10720 | + | |
10721 | 10721 |
| |
10722 | 10722 |
| |
10723 | 10723 |
| |
|
Lines changed: 9 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
354 | 354 |
| |
355 | 355 |
| |
356 | 356 |
| |
357 |
| - | |
358 |
| - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
359 | 360 |
| |
360 | 361 |
| |
361 | 362 |
| |
| |||
1890 | 1891 |
| |
1891 | 1892 |
| |
1892 | 1893 |
| |
1893 |
| - | |
1894 | 1894 |
| |
1895 | 1895 |
| |
1896 | 1896 |
| |
| |||
1976 | 1976 |
| |
1977 | 1977 |
| |
1978 | 1978 |
| |
1979 |
| - | |
1980 | 1979 |
| |
1981 | 1980 |
| |
1982 | 1981 |
| |
1983 |
| - | |
1984 |
| - | |
| 1982 | + | |
| 1983 | + | |
1985 | 1984 |
| |
1986 | 1985 |
| |
1987 | 1986 |
| |
1988 | 1987 |
| |
1989 | 1988 |
| |
1990 | 1989 |
| |
1991 | 1990 |
| |
1992 |
| - | |
1993 | 1991 |
| |
1994 | 1992 |
| |
1995 | 1993 |
| |
| |||
2006 | 2004 |
| |
2007 | 2005 |
| |
2008 | 2006 |
| |
2009 |
| - | |
2010 |
| - | |
2011 |
| - | |
2012 |
| - | |
| 2007 | + | |
2013 | 2008 |
| |
2014 | 2009 |
| |
2015 | 2010 |
| |
| |||
2048 | 2043 |
| |
2049 | 2044 |
| |
2050 | 2045 |
| |
2051 |
| - | |
2052 | 2046 |
| |
| 2047 | + | |
2053 | 2048 |
| |
2054 | 2049 |
| |
2055 | 2050 |
| |
2056 |
| - | |
2057 | 2051 |
| |
2058 | 2052 |
| |
2059 | 2053 |
| |
| |||
2127 | 2121 |
| |
2128 | 2122 |
| |
2129 | 2123 |
| |
2130 |
| - | |
| 2124 | + | |
2131 | 2125 |
| |
2132 |
| - | |
2133 | 2126 |
| |
2134 | 2127 |
| |
2135 | 2128 |
| |
| |||
2219 | 2212 |
| |
2220 | 2213 |
| |
2221 | 2214 |
| |
2222 |
| - | |
| 2215 | + | |
2223 | 2216 |
| |
2224 | 2217 |
| |
2225 | 2218 |
| |
| |||
2299 | 2292 |
| |
2300 | 2293 |
| |
2301 | 2294 |
| |
2302 |
| - | |
2303 | 2295 |
| |
2304 | 2296 |
| |
2305 | 2297 |
| |
|
0 commit comments
Comments
(0)