1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-03 20:02:46 +03:00

Improve some messages

This commit is contained in:
Peter Eisentraut
2015-12-10 22:05:27 -05:00
parent dcf5d7fb14
commit 0fc7c4a557
9 changed files with 12 additions and 12 deletions

View File

@ -3464,7 +3464,7 @@ jsonb_delete_idx(PG_FUNCTION_ARGS)
if (JB_ROOT_IS_OBJECT(in))
ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
errmsg("cannot delete from object using integer subscript")));
errmsg("cannot delete from object using integer index")));
if (JB_ROOT_COUNT(in) == 0)
PG_RETURN_JSONB(in);