@@ -852,7 +852,7 @@ executeMutateAction(JsonPathExecContext *cxt, JsonbMutator *mutator,
852852 if (!JsonbMutatorIsArray (mutator ))
853853 ereport (ERROR ,
854854 (errcode (ERRCODE_INVALID_PARAMETER_VALUE ), /* XXX */
855- errmsg ("argument of %s APPEND is not an array" , "JSON_TRANSFORM ()" )));
855+ errmsg ("argument of %s APPEND is not an array" , "JSON_MODIFY ()" )));
856856
857857 if (!cxt -> update .value && cxt -> update .onNull == JSTB_IGNORE )
858858 return NULL ;
@@ -875,7 +875,7 @@ executeMutateAction(JsonPathExecContext *cxt, JsonbMutator *mutator,
875875 if (cxt -> update .onExisting == JSTB_ERROR )
876876 ereport (ERROR ,
877877 (errcode (ERRCODE_INVALID_PARAMETER_VALUE ), /* XXX */
878- errmsg ("existing value in %s" , "JSON_TRANSFORM ()" )));
878+ errmsg ("existing value in %s" , "JSON_MODIFY ()" )));
879879
880880 if (cxt -> update .onExisting == JSTB_IGNORE )
881881 return NULL ;
@@ -892,14 +892,14 @@ executeMutateAction(JsonPathExecContext *cxt, JsonbMutator *mutator,
892892 ereport (ERROR ,
893893 (errcode (ERRCODE_INVALID_PARAMETER_VALUE ), /* XXX */
894894 errmsg ("invalid path in RENAME operation of %s" ,
895- "JSON_TRANSFORM ()" )));
895+ "JSON_MODIFY ()" )));
896896
897897 if (!cxt -> update .value ||
898898 cxt -> update .value -> type != jbvString )
899899 ereport (ERROR ,
900900 (errcode (ERRCODE_INVALID_PARAMETER_VALUE ), /* XXX */
901901 errmsg ("invalid key name value in RENAME operation of %s" ,
902- "JSON_TRANSFORM ()" )));
902+ "JSON_MODIFY ()" )));
903903
904904 JsonbMutatorRemoveCurrent (mutator );
905905 JsonbObjectMutatorInsert ((JsonObjectMutator * ) mutator ,
@@ -917,7 +917,7 @@ executeMutateAction(JsonPathExecContext *cxt, JsonbMutator *mutator,
917917 if (cxt -> update .onMissing == JSTB_ERROR )
918918 ereport (ERROR ,
919919 (errcode (ERRCODE_INVALID_PARAMETER_VALUE ), /* XXX */
920- errmsg ("missing value in %s" , "JSON_TRANSFORM ()" )));
920+ errmsg ("missing value in %s" , "JSON_MODIFY ()" )));
921921
922922 /* TODO create path ??? */
923923 if (cxt -> update .onMissing == JSTB_CREATE )
@@ -1291,7 +1291,7 @@ executeJsonPathUpdate(JsonPath *path, void *vars, JsonPathVarCallback getVar,
12911291 if (cxt .update .missing && onMissing == JSTB_ERROR )
12921292 ereport (ERROR ,
12931293 (errcode (ERRCODE_INVALID_PARAMETER_VALUE ), /* XXX */
1294- errmsg ("missing value in %s" , "JSON_TRANSFORM ()" )));
1294+ errmsg ("missing value in %s" , "JSON_MODIFY ()" )));
12951295
12961296 return resjbv ? resjbv : copyJsonbValue (& jbv_root );
12971297}
0 commit comments