Debian Codegraph @

mysql-test/suite/vcol/t/mrr.test

raw
1 CREATE TABLE t1 (
2 pk INT AUTO_INCREMENT PRIMARY KEY,
3 col_int_nokey INT NULL,
4 col_int_key INT AS (col_int_nokey) VIRTUAL,
5 KEY (col_int_key)
6 );
7 INSERT INTO t1 (col_int_nokey)
8 VALUES (0), (5), (4), (3), (7), (42), (5), (0), (3);
9 SELECT * FROM t1 WHERE col_int_key IN (3, 4) AND col_int_key <= 83 ORDER BY 1;
10 set optimizer_switch='index_condition_pushdown=off';
11 SELECT * FROM t1 WHERE col_int_key IN (3, 4) ORDER BY 1;
12 SELECT * FROM t1 WHERE col_int_key IN (3, 4) AND col_int_key <= 83 ORDER BY 1;
13 DROP TABLE t1;