Skip to content

Commit e267b3f

Browse files
author
Nikita Glukhov
committed
Use JB_PATH_CREATE flag
1 parent 8d115b5 commit e267b3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/utils/adt/jsonfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4234,7 +4234,7 @@ jsonb_set_element(Datum jsonbdatum, text **path, int path_len,
42344234
path_nulls[i] = false;
42354235

42364236
res = setPath(&it, (Datum *) path, path_nulls, path_len, &state, 0,
4237-
(void *) newval, true, true);
4237+
(void *) newval, true, JB_PATH_CREATE);
42384238

42394239
PG_RETURN_JSONB(JsonbValueToJsonb(res));
42404240
}

0 commit comments

Comments
 (0)