summaryrefslogtreecommitdiff
path: root/src/tutorial/basics.source
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2015-05-31 20:34:10 -0400
committerAndrew Dunstan <andrew@dunslane.net>2015-05-31 20:34:10 -0400
commit37def4224505f3a23a5eef000f0d05daea59c5b5 (patch)
tree24ee85c2bdb98cc867245fadadc6b4f3fcc65165 /src/tutorial/basics.source
parent75f9d17638c9c6bec34f80326c35010c47924728 (diff)
Rename jsonb_replace to jsonb_set and allow it to add new values
The function is given a fourth parameter, which defaults to true. When this parameter is true, if the last element of the path is missing in the original json, jsonb_set creates it in the result and assigns it the new value. If it is false then the function does nothing unless all elements of the path are present, including the last. Based on some original code from Dmitry Dolgov, heavily modified by me. Catalog version bumped.
Diffstat (limited to 'src/tutorial/basics.source')
0 files changed, 0 insertions, 0 deletions