json_get_as_text() Calls itself json_get() in tests.
Issue #2
resolved
json_get()
calls itself json_get()
in errors:
david=# select json_get('[]', 'foo');
ERROR: cannot call json_get(fieldname) on a non-object
And so does json_get_as_text()
:
david=# select json_get_as_text('[]', 'foo');
ERROR: cannot call json_get(fieldname) on a non-object
Seems like it ought to call itself json_get_as_text()
, instead.
Comments (2)
-
reporter -
- changed status to resolved
fixed as of commit 4bb12c41
function names mostly not used in error messages any more.
- Log in to comment
Oh, looks like it lists the wrong number of parameters in the error message, too. Should be
json_get(json, fieldname)
, notjson_get(fieldname)
, yes?