diff options
author | dan <dan@noemail.net> | 2019-06-17 14:50:33 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2019-06-17 14:50:33 +0000 |
commit | fe9a832e806ea2796a8f362f21168725c610687b (patch) | |
tree | b95b31418e12d87610f888530a1d3078bedfda4d /ext/misc/json1.c | |
parent | d9678890a9c3f0f4e56aa49ca7c5e41bc447e4f7 (diff) | |
download | sqlite-fe9a832e806ea2796a8f362f21168725c610687b.tar.gz sqlite-fe9a832e806ea2796a8f362f21168725c610687b.zip |
Fix a problem with handling with handling quoted path elements in extension functions json_set() and json_insert() reported on the mailing list.
FossilOrigin-Name: 45bfcb88e71451a656982e217375e257fc8e68374349c2984be1266bf86fb8cf
Diffstat (limited to 'ext/misc/json1.c')
-rw-r--r-- | ext/misc/json1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/misc/json1.c b/ext/misc/json1.c index d99d360b2..0bb4e1cee 100644 --- a/ext/misc/json1.c +++ b/ext/misc/json1.c @@ -1123,7 +1123,7 @@ static JsonNode *jsonLookupStep( u32 iStart, iLabel; JsonNode *pNode; iStart = jsonParseAddNode(pParse, JSON_OBJECT, 2, 0); - iLabel = jsonParseAddNode(pParse, JSON_STRING, i, zPath); + iLabel = jsonParseAddNode(pParse, JSON_STRING, nKey, zKey); zPath += i; pNode = jsonLookupAppend(pParse, zPath, pApnd, pzErr); if( pParse->oom ) return 0; |