mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
5.3 merge
This commit is contained in:
@ -812,6 +812,33 @@ COUNT(*)
|
||||
1478
|
||||
SET optimizer_switch=@save_optimizer_switch;
|
||||
DROP TABLE t1,t2;
|
||||
# check "Handler_pushed" status varuiables
|
||||
CREATE TABLE t1 (
|
||||
c1 CHAR(1),
|
||||
c2 CHAR(1),
|
||||
KEY (c1)
|
||||
);
|
||||
INSERT INTO t1 VALUES ('3', '3'),('4','4'),('5','5');
|
||||
flush status;
|
||||
show status like "Handler_pushed%";
|
||||
Variable_name Value
|
||||
Handler_pushed_index_cond_checks 0
|
||||
Handler_pushed_index_cond_filtered 0
|
||||
SELECT * FROM t1 FORCE INDEX(c1) WHERE (c1='3' or c1='4') and c1 % 2 = 0 ;
|
||||
c1 c2
|
||||
4 4
|
||||
show status like "Handler_pushed%";
|
||||
Variable_name Value
|
||||
Handler_pushed_index_cond_checks 2
|
||||
Handler_pushed_index_cond_filtered 1
|
||||
SELECT * FROM t1 WHERE (c2='3' or c2='4') and c2 % 2 = 0 ;
|
||||
c1 c2
|
||||
4 4
|
||||
show status like "Handler_pushed%";
|
||||
Variable_name Value
|
||||
Handler_pushed_index_cond_checks 2
|
||||
Handler_pushed_index_cond_filtered 1
|
||||
DROP TABLE t1;
|
||||
drop table if exists t0, t1, t1i, t1m;
|
||||
#
|
||||
# BUG#826935 Assertion `!table || (!table->read_set || bitmap_is_set(table->read_set, field_index))' failed
|
||||
@ -887,4 +914,19 @@ Warning 1292 Truncated incorrect DOUBLE value: 'c'
|
||||
Warning 1292 Truncated incorrect DOUBLE value: 'c'
|
||||
SET optimizer_switch=@save_optimizer_switch;
|
||||
DROP TABLE t1,t2,t3,t4;
|
||||
#
|
||||
# BUG#933412: Server crashes in _mi_put_key_in_record on KILL QUERY with ICP, STRAIGHT_JOIN
|
||||
#
|
||||
CREATE TABLE t1 (
|
||||
b INT,
|
||||
c VARCHAR(1) NOT NULL,
|
||||
d DATETIME,
|
||||
KEY (c, b)
|
||||
) ENGINE=MyISAM;
|
||||
# INSERT some data
|
||||
CREATE TABLE t2 ( a INT ) ENGINE=MyISAM;
|
||||
INSERT INTO t2 VALUES
|
||||
(7),(3),(7),(3);
|
||||
# Now run a number of ICP queries while trying to kill them
|
||||
DROP TABLE t1,t2;
|
||||
set optimizer_switch=@myisam_icp_tmp;
|
||||
|
Reference in New Issue
Block a user