mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 10:08:20 +00:00
add compat tests
This commit is contained in:
parent
92a745ca49
commit
dba82b40e3
2 changed files with 9 additions and 2 deletions
|
@ -98,3 +98,11 @@ do_execsql_test select-agg-binary-unary-negative {
|
|||
do_execsql_test select-agg-binary-unary-positive {
|
||||
SELECT min(age) + +max(age) FROM users;
|
||||
} {101}
|
||||
|
||||
do_execsql_test select-agg-json-array {
|
||||
SELECT json_group_array(name) FROM products;
|
||||
} {["hat","cap","shirt","sweater","sweatshirt","shorts","jeans","sneakers","boots","coat","accessories"]}
|
||||
|
||||
do_execsql_test select-agg-json-array-object {
|
||||
SELECT json_group_array(json_object('name', name)) FROM products;
|
||||
} {[{"name":"hat"},{"name":"cap"},{"name":"shirt"},{"name":"sweater"},{"name":"sweatshirt"},{"name":"shorts"},{"name":"jeans"},{"name":"sneakers"},{"name":"boots"},{"name":"coat"},{"name":"accessories"}]}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue