make values work in subquery

This commit is contained in:
meteorgan 2025-05-23 00:24:00 +08:00
parent 0467d7e11b
commit 34e05ef974
6 changed files with 79 additions and 34 deletions

19
testing/values.test Executable file
View file

@ -0,0 +1,19 @@
#!/usr/bin/env tclsh
set testdir [file dirname $argv0]
source $testdir/tester.tcl
do_execsql_test values-1 {
values(1, 2);
} {1|2};
do_execsql_test values-2 {
values(1, 2), (3, 4);
} {1|2
3|4};
do_execsql_test values-in-from {
select * from (values(3, 4, 5), (5, 6, 7), (8, 9, 10));
} {3|4|5
5|6|7
8|9|10};