You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.1 KiB
39 lines
1.1 KiB
let $engine=innodb;
|
|
--source include/skip_scan_test.inc
|
|
|
|
--echo #
|
|
--echo # Bug#28089360 WL#11322: SIG11 AT QEP_SHARED_OWNER::JOIN | SQL/SQL_OPT_EXEC_SHARED.H:458
|
|
--echo #
|
|
|
|
CREATE TABLE t1 (f1 INT(11), f2 VARCHAR(1), KEY k1 (f2, f1));
|
|
INSERT INTO t1 VALUES (-682212662,'c'), (-1974921822,'C'), (1260604936,'9');
|
|
|
|
CREATE TABLE t2 (f1 INT(11));
|
|
INSERT INTO t2 VALUES (824388284), (1186821161);
|
|
|
|
CREATE VIEW v1 AS select f1, f2 from t1;
|
|
|
|
DELETE FROM t2 WHERE (f1, f1) IN (SELECT f1,f2 FROM v1 WHERE f1 >= 2);
|
|
|
|
DROP VIEW v1;
|
|
DROP TABLE t1, t2;
|
|
|
|
--echo #
|
|
--echo # Bug #29602393 ASSERTION `BITMAP_IS_SET(KEY_INFO->TABLE->READ_SET,
|
|
--echo # KEY_INFO->KEY_PART.*FAILED
|
|
--echo #
|
|
|
|
CREATE TABLE t1(f1 INT, f2 VARCHAR(64) NOT NULL, PRIMARY KEY (f1))
|
|
PARTITION BY RANGE(f1)
|
|
(
|
|
PARTITION p1 VALUES LESS THAN (3),
|
|
PARTITION p2 VALUES LESS THAN (maxvalue)
|
|
);
|
|
INSERT INTO t1 VALUES (1, 'abcde'), (2, 'abcde'), (3, 'abcde');
|
|
CREATE INDEX idx1 ON t1(f2);
|
|
ANALYZE TABLE t1;
|
|
|
|
EXPLAIN SELECT /*+ SKIP_SCAN(t1 idx1) */ count(*) FROM t1 WHERE f1 <= 3;
|
|
SELECT /*+ SKIP_SCAN(t1 idx1) */ count(*) FROM t1 WHERE f1 <= 3;
|
|
|
|
DROP TABLE t1;
|
|
|