mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Fix the OP_DeferredSeek index-to-table column map in P4 so that it works
with generated columns. Ticket [ce22a07731530118] FossilOrigin-Name: 36c11ad51fe9ab1bde0b98d0ea9b8588e07d168cd8027486749372894941ad93
This commit is contained in:
@@ -211,4 +211,15 @@ do_catchsql_test gencol1-6.10 {
|
||||
REPLACE INTO t0(c1) VALUES(NULL);
|
||||
} {1 {NOT NULL constraint failed: t0.c0}}
|
||||
|
||||
# 2019-11-06 ticket b13b7dce76e9352b34e7
|
||||
do_execsql_test gencol1-7.10 {
|
||||
DROP TABLE IF EXISTS t0;
|
||||
CREATE TABLE t0 (c0 GENERATED ALWAYS AS (1), c1 UNIQUE, c2 UNIQUE);
|
||||
INSERT INTO t0(c1) VALUES (1);
|
||||
SELECT quote(0 = t0.c2 OR t0.c1 BETWEEN t0.c2 AND 1) FROM t0;
|
||||
} {NULL}
|
||||
do_execsql_test gencol1-7.20 {
|
||||
SELECT 99 FROM t0 WHERE 0 = t0.c2 OR t0.c1 BETWEEN t0.c2 AND 1;
|
||||
} {}
|
||||
|
||||
finish_test
|
||||
|
Reference in New Issue
Block a user