mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-08 02:34:20 +01:00
Handle issues with nested arguments
This commit is contained in:
@@ -60,10 +60,26 @@ do_execsql_test json_array_str {
|
||||
SELECT json_array('a')
|
||||
} {{["a"]}}
|
||||
|
||||
do_execsql_test json_array_numbers {
|
||||
SELECT json_array(1, 1.5)
|
||||
} {{[1,1.5]}}
|
||||
|
||||
do_execsql_test json_array_numbers_2 {
|
||||
SELECT json_array(1., +2., -2.)
|
||||
} {{[1.0,2.0,-2.0]}}
|
||||
|
||||
do_execsql_test json_array_null {
|
||||
SELECT json_array(null)
|
||||
} {{[null]}}
|
||||
|
||||
do_execsql_test json_array_not_json {
|
||||
SELECT json_array('{"a":1}');
|
||||
SELECT json_array('{"a":1}')
|
||||
} {{["{\"a\":1}"]}}
|
||||
|
||||
do_execsql_test json_array_json {
|
||||
SELECT json_array(json('{"a":1}'));
|
||||
SELECT json_array(json('{"a":1}'))
|
||||
} {{[{"a":1}]}}
|
||||
|
||||
do_execsql_test json_array_nested {
|
||||
SELECT json_array(json_array(1,2,3), json('[1,2,3]'), '[1,2,3]')
|
||||
} {{[[1,2,3],[1,2,3],"[1,2,3]"]}}
|
||||
|
||||
@@ -39,6 +39,10 @@ do_execsql_test char {
|
||||
select char(108, 105)
|
||||
} {li}
|
||||
|
||||
do_execsql_test char-nested {
|
||||
select char(106 + 2, 105)
|
||||
} {li}
|
||||
|
||||
do_execsql_test char-empty {
|
||||
select char()
|
||||
} {}
|
||||
|
||||
Reference in New Issue
Block a user