mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-18 06:24:56 +01:00
More tests
This commit is contained in:
@@ -305,6 +305,30 @@ do_execsql_test json_arrow_shift_implicit_root_path_array_negative_idx {
|
||||
SELECT '[1,2,3]' ->> -1;
|
||||
} {{3}}
|
||||
|
||||
do_execsql_test json_arrow_implicit_real_cast {
|
||||
SELECT '{"1.5":"abc"}' -> 1.5;
|
||||
} {{"abc"}}
|
||||
|
||||
do_execsql_test json_arrow_shift_implicit_real_cast {
|
||||
SELECT '{"1.5":"abc"}' -> 1.5;
|
||||
} {{abc}}
|
||||
|
||||
do_execsql_test json_arrow_implicit_true_cast {
|
||||
SELECT '[1,2,3]' -> true
|
||||
} {{2}}
|
||||
|
||||
do_execsql_test json_arrow_shift_implicit_true_cast {
|
||||
SELECT '[1,2,3]' ->> true
|
||||
} {{2}}
|
||||
|
||||
do_execsql_test json_arrow_implicit_false_cast {
|
||||
SELECT '[1,2,3]' -> false
|
||||
} {{1}}
|
||||
|
||||
do_execsql_test json_arrow_shift_implicit_false_cast {
|
||||
SELECT '[1,2,3]' ->> false
|
||||
} {{1}}
|
||||
|
||||
# TODO: fix me - this passes on SQLite and needs to be fixed in Limbo.
|
||||
do_execsql_test json_extract_multiple_null_paths {
|
||||
SELECT json_extract(1, null, null, null)
|
||||
|
||||
Reference in New Issue
Block a user