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:
@ -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
|
||||
|
Reference in New Issue
Block a user