]> granicus.if.org Git - postgresql/commit
Revisit error message details for JSON input parsing.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 13 Jun 2012 23:43:35 +0000 (19:43 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 13 Jun 2012 23:43:35 +0000 (19:43 -0400)
commit80edfd76591fdb9beec061de3c05ef4e9d96ce56
treeacf0b71b805d0f2cc59705485306b68995bbbd42
parent0f0fba1794c72dfbc0f82c18f50d2cb0dd82e480
Revisit error message details for JSON input parsing.

Instead of identifying error locations only by line number (which could
be entirely unhelpful with long input lines), provide a fragment of the
input text too, placing this info in a new CONTEXT entry.  Make the
error detail messages conform more closely to style guidelines, fix
failure to expose some of them for translation, ensure compiler can
check formats against supplied parameters.
src/backend/utils/adt/json.c
src/test/regress/expected/json.out