1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Back out the json_check() routine. Instead, throw an error if the input to

a json function (other than json_valid()) is not valid JSON.

FossilOrigin-Name: dc9ce7b18cbe23d065317757234ef9fb8792da7a
This commit is contained in:
drh
2015-08-28 20:07:40 +00:00
parent 2798f0b54b
commit f2df7e71d6
4 changed files with 47 additions and 59 deletions

View File

@ -63,11 +63,4 @@ do_execsql_test json1-3.4 {
SELECT json_type(json_set('{"a":1,"b":2}','$$.b','{"x":3,"y":4}'),'$.b');
} {object}
do_execsql_test json1-4.1 {
SELECT json_check(' [ 1, 2] ');
} {[1,2]}
do_catchsql_test json1-4.2 {
SELECT json_check(' [ 1, 2 ');
} {1 {malformed JSON}}
finish_test