mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Test case for writing to a WITHOUT ROWID virtual table. The TCLVAR virtual
table is modified to add a "fullname" column which is the primary key, and to accept update operations against the primary key. FossilOrigin-Name: 6997e00c3221f266f4d9187501d8a9e5bafb85551e88a744cdc8ffe3b75ec2a4
This commit is contained in:
@ -39,7 +39,9 @@ do_test vtabE-1 {
|
||||
CREATE VIRTUAL TABLE t1 USING tclvar;
|
||||
CREATE VIRTUAL TABLE t2 USING tclvar;
|
||||
CREATE TABLE t3(a INTEGER PRIMARY KEY, b);
|
||||
SELECT t1.*, t2.*, abs(t3.b + abs(t2.value + abs(t1.value)))
|
||||
SELECT t1.name, t1.arrayname, t1.value,
|
||||
t2.name, t2.arrayname, t2.value,
|
||||
abs(t3.b + abs(t2.value + abs(t1.value)))
|
||||
FROM t1 LEFT JOIN t2 ON t2.name = t1.arrayname
|
||||
LEFT JOIN t3 ON t3.a=t2.value
|
||||
WHERE t1.name = 'vtabE'
|
||||
|
Reference in New Issue
Block a user