diff options
author | drh <drh@noemail.net> | 2017-03-23 00:13:52 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2017-03-23 00:13:52 +0000 |
commit | bb7aa2d85e684d0db13c93c1e6dbb0e2f3bfb1ab (patch) | |
tree | f7b6a49f4c1ea3e1ed7fe6c6735eae363201fed9 /test/json104.test | |
parent | f07b249f92fb1d0a37b1444657d14ed7042bafa7 (diff) | |
download | sqlite-bb7aa2d85e684d0db13c93c1e6dbb0e2f3bfb1ab.tar.gz sqlite-bb7aa2d85e684d0db13c93c1e6dbb0e2f3bfb1ab.zip |
Various fixes to the json_merge_patch() function.
FossilOrigin-Name: f49fd2554b0723eb7cf2fd765d655c6820833ee7e5f7d7629d98c27a6fffa1d9
Diffstat (limited to 'test/json104.test')
-rw-r--r-- | test/json104.test | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/json104.test b/test/json104.test index be041c5da..b5a45bc52 100644 --- a/test/json104.test +++ b/test/json104.test @@ -54,6 +54,13 @@ do_execsql_test json104-110 { }, "tags": [ "example" ] }'); -} {{{"title":"Hello!","author":{"givenName":"John"},"tags":["example"],"content":"This will be unchanged",phoneNumber:"+01-123-456-7890"}}} +} {{{"title":"Hello!","author":{"givenName":"John"},"tags":["example"],"content":"This will be unchanged","phoneNumber":"+01-123-456-7890"}}} + +do_execsql_test json104-200 { + SELECT json_merge_patch('[1,2,3]','{"x":null}'); +} {{{}}} +do_execsql_test json104-210 { + SELECT json_merge_patch('[1,2,3]','{"x":null,"y":1,"z":null}'); +} {{{"y":1}}} finish_test |