1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-12-24 14:17:58 +03:00

Change the way generated columns are computed so that no column is computed

inside branch code that might not be taken.  Ticket [4fc08501f4e56692]

FossilOrigin-Name: 9e07b48934e9a972dcf62e3538b3b21ffa044c553feba0441675ac0bbe13bcb2
This commit is contained in:
drh
2019-11-06 22:19:07 +00:00
parent bde3a4f680
commit dfa15270c4
6 changed files with 69 additions and 38 deletions

View File

@@ -222,4 +222,16 @@ do_execsql_test gencol1-7.20 {
SELECT 99 FROM t0 WHERE 0 = t0.c2 OR t0.c1 BETWEEN t0.c2 AND 1;
} {}
# 2019-11-06 ticket 4fc08501f4e56692
do_execsql_test gencol1-8.10 {
DROP TABLE IF EXISTS t0;
CREATE TABLE t0(
c0 AS (('a', 9) < ('b', c1)),
c1 AS (1),
c2 CHECK (1 = c1)
);
INSERT INTO t0 VALUES (0),(99);
SELECT * FROM t0;
} {1 1 0 1 1 99}
finish_test