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 200
300 300
1 1
0
--JSONExtractString-- --JSONExtractString--
hello hello
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 JSONExtractFloat('{"a": "hello", "b": [-100, 200.0, 300]}', 'b', 2);
SELECT JSONExtractUInt('{"a": "hello", "b": [-100, 200.0, 300]}', 'b', -1); SELECT JSONExtractUInt('{"a": "hello", "b": [-100, 200.0, 300]}', 'b', -1);
SELECT JSONExtractBool('{"passed": true}', 'passed'); SELECT JSONExtractBool('{"passed": true}', 'passed');
SELECT JSONExtractBool('"HX-=');
SELECT '--JSONExtractString--'; SELECT '--JSONExtractString--';
SELECT JSONExtractString('{"a": "hello", "b": [-100, 200.0, 300]}', 'a'); SELECT JSONExtractString('{"a": "hello", "b": [-100, 200.0, 300]}', 'a');