mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
96e092dc73
WL#2474 "Multi Range Read: Change the default MRR implementation to implement new MRR interface" WL#2475 "Batched range read functions for MyISAM/InnoDb" "Index condition pushdown for MyISAM/InnoDB" Igor's fix from sp1r-igor@olga.mysql.com-20080330055902-07614: There could be observed the following problems: 1. EXPLAIN did not mention pushdown conditions from on expressions in the 'extra' column. As a result if a query had no where conditions pushed down to a table, but had on conditions pushed to this table the 'extra' column in the EXPLAIN for the table missed 'using where'. 2. Conditions for ref access were not eliminated from on expressions though such conditions were eliminated from the where condition.
44 lines
906 B
Text
44 lines
906 B
Text
#
|
|
# Bug#43360 - Server crash with a simple multi-table update
|
|
#
|
|
set session debug="+d,optimizer_innodb_icp";
|
|
CREATE TABLE t1 (
|
|
a CHAR(2) NOT NULL PRIMARY KEY,
|
|
b VARCHAR(20) NOT NULL,
|
|
KEY (b)
|
|
) ENGINE=InnoDB;
|
|
CREATE TABLE t2 (
|
|
a CHAR(2) NOT NULL PRIMARY KEY,
|
|
b VARCHAR(20) NOT NULL,
|
|
KEY (b)
|
|
) ENGINE=InnoDB;
|
|
INSERT INTO t1 VALUES
|
|
('AB','MySQLAB'),
|
|
('JA','Sun Microsystems'),
|
|
('MS','Microsoft'),
|
|
('IB','IBM- Inc.'),
|
|
('GO','Google Inc.');
|
|
INSERT INTO t2 VALUES
|
|
('AB','Sweden'),
|
|
('JA','USA'),
|
|
('MS','United States of America'),
|
|
('IB','North America'),
|
|
('GO','South America');
|
|
Warnings:
|
|
Warning 1265 Data truncated for column 'b' at row 3
|
|
UPDATE t1,t2 SET t1.b=UPPER(t1.b) WHERE t1.b LIKE 'United%';
|
|
SELECT * FROM t1;
|
|
a b
|
|
GO Google Inc.
|
|
IB IBM- Inc.
|
|
MS Microsoft
|
|
AB MySQLAB
|
|
JA Sun Microsystems
|
|
SELECT * FROM t2;
|
|
a b
|
|
IB North America
|
|
GO South America
|
|
AB Sweden
|
|
MS United States of Ame
|
|
JA USA
|
|
DROP TABLE t1,t2;
|