Debian Codegraph @

mysql-test/suite/parts/t/cache.test

raw
1 #
2 # Test cases related to row cache
3 #
4
5 # The server must support partitioning.
6 --source include/have_partition.inc
7
8 CREATE TABLE t1 (f1 INT, f2 INT, f3 INT, f4 INT, KEY (f4),
9 KEY (f1,f4,f3,f2)
10 ) PARTITION BY RANGE(f1) ( PARTITION p VALUES LESS THAN MAXVALUE );
11
12 INSERT IGNORE INTO t1 VALUES
13 (140,0,0,7),(143,92,NULL,0),(0,0,NULL,154),(NULL,255,117,197),(0,0,NULL,0),(60,0,0,1);
14
15 CREATE TABLE t2 (f INT);
16 INSERT INTO t2 VALUES (NULL),(35),(NULL),(2);
17
18 --sorted_result
19 SELECT * FROM t1, t2 WHERE f4 >= f;
20
21 # Cleanup
22 DROP TABLE t1, t2;