Re: [HACKERS] slightly confusing JSON error context

2013-06-19 Thread Andrew Dunstan
On 06/19/2013 09:19 PM, Peter Eisentraut wrote: These are some cases from the regression tests: SELECT ''::json;-- ERROR, no value ERROR: invalid input syntax for type json LINE 1: SELECT ''::json; ^ DETAIL: The input string ended unexpectedly. CONTEXT: JSON d

[HACKERS] slightly confusing JSON error context

2013-06-19 Thread Peter Eisentraut
These are some cases from the regression tests: SELECT ''::json;-- ERROR, no value ERROR: invalid input syntax for type json LINE 1: SELECT ''::json; ^ DETAIL: The input string ended unexpectedly. CONTEXT: JSON data, line 1: SELECT ''::json;-- ER