Add a test case with incorrect JSON.

This commit is contained in:
Vitaly Baranov 2019-05-16 20:43:01 +03:00
parent 8ab4e4dcfe
commit cb459c79aa
2 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,7 @@ Array
200
300
1
0
--JSONExtractString--
hello
hello

View File

@ -23,6 +23,7 @@ SELECT JSONExtractInt('{"a": "hello", "b": [-100, 200.0, 300]}', 'b', 1);
SELECT JSONExtractFloat('{"a": "hello", "b": [-100, 200.0, 300]}', 'b', 2);
SELECT JSONExtractUInt('{"a": "hello", "b": [-100, 200.0, 300]}', 'b', -1);
SELECT JSONExtractBool('{"passed": true}', 'passed');
SELECT JSONExtractBool('"HX-=');
SELECT '--JSONExtractString--';
SELECT JSONExtractString('{"a": "hello", "b": [-100, 200.0, 300]}', 'a');