diff options
author | drh <> | 2023-12-06 16:57:18 +0000 |
---|---|---|
committer | drh <> | 2023-12-06 16:57:18 +0000 |
commit | 9df01b5ccf78535dd44e1f8c0b83fcee40ea5042 (patch) | |
tree | e014ef69e82f9db4ea3b8126e9116937910bb138 /test/json502.test | |
parent | 8dfbf4addce7f8bf4d4fa3fd96a41aea11d9b41d (diff) | |
download | sqlite-9df01b5ccf78535dd44e1f8c0b83fcee40ea5042.tar.gz sqlite-9df01b5ccf78535dd44e1f8c0b83fcee40ea5042.zip |
Fix the routine that determines the json_tree.path value for the first row
so that it correctly takes into account escape sequences in the path
argument.
FossilOrigin-Name: b9243ee8a37c62eb8848e765bd4af83bc1b3d3eb24fb4268a1357ad1f8b2e1fb
Diffstat (limited to 'test/json502.test')
-rw-r--r-- | test/json502.test | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/json502.test b/test/json502.test index ed61260e3..48c372c4f 100644 --- a/test/json502.test +++ b/test/json502.test @@ -58,4 +58,8 @@ do_execsql_test 3.4 { SELECT json_patch('{"a\x62c":123}','{"ab\x63":456}') ->> 'abc'; } 456 +do_execsql_test 4.1 { + SELECT * FROM json_tree('{"\u0017":1}','$."\x17"'); +} {{\x17} 1 integer 1 1 null {$."\x17"} {$}} + finish_test |