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.
30 lines
762 B
30 lines
762 B
#
|
|
# Tests for the BLACKHOLE storage engine
|
|
#
|
|
|
|
--source include/have_blackhole.inc
|
|
|
|
--echo #
|
|
--echo # Bug #11880012: INDEX_SUBQUERY, BLACKHOLE,
|
|
--echo # HANG IN PREPARING WITH 100% CPU USAGE
|
|
--echo #
|
|
|
|
CREATE TABLE t1(a INT NOT NULL);
|
|
INSERT INTO t1 VALUES (1), (2), (3);
|
|
CREATE TABLE t2 (a INT UNSIGNED, b INT, UNIQUE KEY (a, b)) ENGINE=BLACKHOLE;
|
|
|
|
SELECT 1 FROM t1 WHERE a = ANY (SELECT a FROM t2);
|
|
|
|
DROP TABLE t1, t2;
|
|
|
|
--echo End of 5.5 tests
|
|
|
|
--echo #
|
|
--echo # Bug#13948247 DIVISION BY 0 IN GET_BEST_DISJUNCT_QUICK WITH FORCE INDEX GROUP BY
|
|
--echo #
|
|
|
|
CREATE TABLE t1(a INT, b INT, c INT, KEY(c), UNIQUE(a)) ENGINE = BLACKHOLE;
|
|
SELECT 0 FROM t1 FORCE INDEX FOR GROUP BY(a) WHERE a = 0 OR b = 0 AND c = 0;
|
|
DROP TABLE t1;
|
|
|
|
--echo End of 5.6 tests
|
|
|