mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
A list of arguments following a table name translates into equality
constraints against hidden columns in that table. FossilOrigin-Name: 40e12cfe4c29475417ba89fb637b4c763cf74016
This commit is contained in:
@ -32,5 +32,24 @@ do_execsql_test tabfunc01-1.2 {
|
||||
do_catchsql_test tabfunc01-1.3 {
|
||||
CREATE VIRTUAL TABLE t1 USING generate_series;
|
||||
} {1 {no such module: generate_series}}
|
||||
do_execsql_test tabfunc01-1.4 {
|
||||
SELECT * FROM generate_series(1,9,2);
|
||||
} {1 3 5 7 9}
|
||||
do_execsql_test tabfunc01-1.5 {
|
||||
SELECT * FROM generate_series(1,9);
|
||||
} {1 2 3 4 5 6 7 8 9}
|
||||
do_execsql_test tabfunc01-1.6 {
|
||||
SELECT * FROM generate_series(1,10) WHERE step=3;
|
||||
} {1 4 7 10}
|
||||
do_catchsql_test tabfunc01-1.7 {
|
||||
SELECT * FROM generate_series(1,9,2,11);
|
||||
} {1 {too many arguments on generate_series - max 3}}
|
||||
|
||||
do_execsql_test tabfunc01-2.1 {
|
||||
CREATE TABLE t1(x);
|
||||
INSERT INTO t1(x) VALUES(2),(3);
|
||||
SELECT *, '|' FROM t1, generate_series(1,x) ORDER BY 1, 2
|
||||
|
||||
} {2 1 | 2 2 | 3 1 | 3 2 | 3 3 |}
|
||||
|
||||
finish_test
|
||||
|
Reference in New Issue
Block a user