aboutsummaryrefslogtreecommitdiff
path: root/ext/misc/json1.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2017-03-23 20:33:49 +0000
committerdrh <drh@noemail.net>2017-03-23 20:33:49 +0000
commit37f03dfb1f1f0c5668ef9d8ab61352712d368c96 (patch)
tree9c12cdf6465afb41ef4225b4a41fa0b2795e13ac /ext/misc/json1.c
parent1fe162fd0ce451dacee29c9d7164415c8815ca7b (diff)
downloadsqlite-37f03dfb1f1f0c5668ef9d8ab61352712d368c96.tar.gz
sqlite-37f03dfb1f1f0c5668ef9d8ab61352712d368c96.zip
Change the name of the json_merge_patch() function to just json_patch().
FossilOrigin-Name: 04d4100445a3373986ee962618bc03ec304f6ba2f867c8e9eee415daffb593fc
Diffstat (limited to 'ext/misc/json1.c')
-rw-r--r--ext/misc/json1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/misc/json1.c b/ext/misc/json1.c
index 80b654d68..acec87c1b 100644
--- a/ext/misc/json1.c
+++ b/ext/misc/json1.c
@@ -1431,7 +1431,7 @@ static JsonNode *jsonMergePatch(
** object that is the result of running the RFC 7396 MergePatch() algorithm
** on the two arguments.
*/
-static void jsonMergePatchFunc(
+static void jsonPatchFunc(
sqlite3_context *ctx,
int argc,
sqlite3_value **argv
@@ -2260,8 +2260,8 @@ int sqlite3Json1Init(sqlite3 *db){
{ "json_array_length", 2, 0, jsonArrayLengthFunc },
{ "json_extract", -1, 0, jsonExtractFunc },
{ "json_insert", -1, 0, jsonSetFunc },
- { "json_merge_patch", 2, 0, jsonMergePatchFunc },
{ "json_object", -1, 0, jsonObjectFunc },
+ { "json_patch", 2, 0, jsonPatchFunc },
{ "json_quote", 1, 0, jsonQuoteFunc },
{ "json_remove", -1, 0, jsonRemoveFunc },
{ "json_replace", -1, 0, jsonReplaceFunc },