Skip to content

Commit e5c26fd

Browse files
committed
Merge branch '5.5' into bb-10.0-merge
2 parents 1fd84f9 + 2fbf227 commit e5c26fd

File tree

16 files changed

+361
-19
lines changed

16 files changed

+361
-19
lines changed

mysql-test/r/derived.result

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,6 +1049,7 @@ INSERT INTO t2 VALUES (NULL),(NULL);
10491049
CREATE TABLE t3 (c VARCHAR(1024) CHARACTER SET utf8, d INT) ENGINE=MyISAM;
10501050
CREATE OR REPLACE ALGORITHM=TEMPTABLE VIEW v3 AS SELECT * FROM t3;
10511051
INSERT INTO t3 VALUES ('abc',NULL),('def',4);
1052+
set @save_join_cache_level= @@join_cache_level;
10521053
SET join_cache_level= 8;
10531054
explain
10541055
SELECT * FROM v1, t2, v3 WHERE a = c AND b = d;
@@ -1078,4 +1079,36 @@ i
10781079
drop procedure pr;
10791080
drop view v1;
10801081
drop table t1;
1082+
set @@join_cache_level= @save_join_cache_level;
1083+
#
1084+
# MDEV-16307: Incorrect results when using BNLH join instead of BNL join with views
1085+
#
1086+
CREATE TABLE t1 (c1 text, c2 int);
1087+
INSERT INTO t1 VALUES ('a',1), ('c',3), ('g',7), ('d',4), ('c',3);
1088+
CREATE TABLE t2 (c1 text, c2 int);
1089+
INSERT INTO t2 VALUES ('b',2), ('c',3);
1090+
CREATE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT * FROM t1;
1091+
explain SELECT v1.c1, v1.c2, t2.c1, t2.c2 FROM v1, t2 WHERE v1.c1=t2.c1;
1092+
id select_type table type possible_keys key key_len ref rows Extra
1093+
1 PRIMARY t2 ALL NULL NULL NULL NULL 2
1094+
1 PRIMARY <derived2> ALL NULL NULL NULL NULL 5 Using where; Using join buffer (flat, BNL join)
1095+
2 DERIVED t1 ALL NULL NULL NULL NULL 5
1096+
SELECT v1.c1, v1.c2, t2.c1, t2.c2 FROM v1, t2 WHERE v1.c1=t2.c1;
1097+
c1 c2 c1 c2
1098+
c 3 c 3
1099+
c 3 c 3
1100+
set @save_join_cache_level= @@join_cache_level;
1101+
set @@join_cache_level=4;
1102+
explain SELECT v1.c1, v1.c2, t2.c1, t2.c2 FROM v1, t2 WHERE v1.c1=t2.c1;
1103+
id select_type table type possible_keys key key_len ref rows Extra
1104+
1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where
1105+
1 PRIMARY <derived2> hash_ALL NULL #hash#$hj 3 test.t2.c1 5 Using where; Using join buffer (flat, BNLH join)
1106+
2 DERIVED t1 ALL NULL NULL NULL NULL 5
1107+
SELECT v1.c1, v1.c2, t2.c1, t2.c2 FROM v1, t2 WHERE v1.c1=t2.c1;
1108+
c1 c2 c1 c2
1109+
c 3 c 3
1110+
c 3 c 3
1111+
drop table t1,t2;
1112+
drop view v1;
1113+
set @@join_cache_level= @save_join_cache_level;
10811114
# end of 5.5

mysql-test/r/join.result

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1500,6 +1500,46 @@ DROP VIEW v2;
15001500
DROP TABLE t1,t2;
15011501
SET optimizer_switch=@save_optimizer_switch;
15021502
#
1503+
# MDEV-16512
1504+
# Server crashes in find_field_in_table_ref on 2nd execution of SP referring to
1505+
# non-existing field
1506+
#
1507+
CREATE TABLE t (i INT);
1508+
CREATE PROCEDURE p() SELECT t1.f FROM t AS t1 JOIN t AS t2 USING (f);
1509+
CALL p;
1510+
ERROR 42S22: Unknown column 'f' in 'from clause'
1511+
CALL p;
1512+
ERROR 42S22: Unknown column 'f' in 'from clause'
1513+
FLUSH TABLES;
1514+
CALL p;
1515+
ERROR 42S22: Unknown column 'f' in 'from clause'
1516+
DROP TABLE t;
1517+
CREATE TABLE t (f INT);
1518+
CALL p;
1519+
ERROR 42S22: Unknown column 'f' in 'from clause'
1520+
DROP TABLE t;
1521+
CREATE TABLE t (i INT);
1522+
CALL p;
1523+
ERROR 42S22: Unknown column 'f' in 'from clause'
1524+
DROP PROCEDURE p;
1525+
DROP TABLE t;
1526+
CREATE TABLE t1 (a INT, b INT);
1527+
CREATE TABLE t2 (a INT);
1528+
CREATE TABLE t3 (a INT, c INT);
1529+
CREATE TABLE t4 (a INT, c INT);
1530+
CREATE TABLE t5 (a INT, c INT);
1531+
CREATE PROCEDURE p1() SELECT c FROM t1 JOIN (t2 LEFT JOIN t3 USING (a) LEFT JOIN t4 USING (a)
1532+
LEFT JOIN t5 USING (a)) USING (a);
1533+
CALL p1;
1534+
ERROR 23000: Column 'c' in field list is ambiguous
1535+
CALL p1;
1536+
ERROR 23000: Column 'c' in field list is ambiguous
1537+
DROP PROCEDURE p1;
1538+
DROP TABLE t1,t2,t3,t4,t5;
1539+
#
1540+
# End of MariaDB 5.5 tests
1541+
#
1542+
#
15031543
# Bug #35268: Parser can't handle STRAIGHT_JOIN with USING
15041544
#
15051545
CREATE TABLE t1 (a int);

mysql-test/r/join_cache.result

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5871,6 +5871,39 @@ SET join_buffer_space_limit= default;
58715871
set optimizer_switch=@save_optimizer_switch;
58725872
DROP TABLE t1,t4,t5,t2;
58735873
#
5874+
# MDEV-16603: BNLH for query with materialized semi-join
5875+
#
5876+
set join_cache_level=4;
5877+
CREATE TABLE t1 ( i1 int, v1 varchar(1)) ENGINE=InnoDB;
5878+
INSERT INTO t1 VALUES (7,'x');
5879+
CREATE TABLE t2 (i1 int, v1 varchar(1), KEY v1 (v1,i1)) ENGINE=InnoDB;
5880+
INSERT INTO t2 VALUES
5881+
(NULL,'x'),(1,'x'),(3,'x'),(5,'x'),(8,'x'),(48,'x'),
5882+
(228,'x'),(3,'y'),(1,'z'),(9,'z');
5883+
CREATE TABLE temp
5884+
SELECT t1.i1 AS f1, t1.v1 AS f2 FROM (t2 JOIN t1 ON (t1.v1 = t2.v1));
5885+
SELECT * FROM temp
5886+
WHERE (f1,f2) IN (SELECT t1.i1, t1.v1 FROM (t2 JOIN t1 ON (t1.v1 = t2.v1)));
5887+
f1 f2
5888+
7 x
5889+
7 x
5890+
7 x
5891+
7 x
5892+
7 x
5893+
7 x
5894+
7 x
5895+
EXPLAIN EXTENDED SELECT * FROM temp
5896+
WHERE (f1,f2) IN (SELECT t1.i1, t1.v1 FROM (t2 JOIN t1 ON (t1.v1 = t2.v1)));
5897+
id select_type table type possible_keys key key_len ref rows filtered Extra
5898+
1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 1 100.00
5899+
1 PRIMARY temp hash_ALL NULL #hash#$hj 9 test.t1.i1,test.t1.v1 7 100.00 Using where; Using join buffer (flat, BNLH join)
5900+
2 MATERIALIZED t1 ALL NULL NULL NULL NULL 1 100.00 Using where
5901+
2 MATERIALIZED t2 hash_index v1 #hash#v1:v1 4:9 test.t1.v1 10 10.00 Using join buffer (flat, BNLH join)
5902+
Warnings:
5903+
Note 1003 select `test`.`temp`.`f1` AS `f1`,`test`.`temp`.`f2` AS `f2` from `test`.`temp` semi join (`test`.`t2` join `test`.`t1`) where ((`test`.`temp`.`f1` = `test`.`t1`.`i1`) and (`test`.`t2`.`v1` = `test`.`t1`.`v1`) and (`test`.`temp`.`f2` = `test`.`t1`.`v1`))
5904+
DROP TABLE t1,t2,temp;
5905+
SET join_cache_level = default;
5906+
#
58745907
# MDEV-5123 Remove duplicated conditions pushed both to join_tab->select_cond and join_tab->cache_select->cond for blocked joins.
58755908
#
58765909
set join_cache_level=default;

mysql-test/r/subselect_sj2_mat.result

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1692,6 +1692,57 @@ id
16921692
13
16931693
drop table t1;
16941694
#
1695+
# MDEV-15982: Incorrect results when subquery is materialized
1696+
#
1697+
CREATE TABLE `t1` (`id` int(32) NOT NULL primary key);
1698+
INSERT INTO `t1` VALUES
1699+
(45), (46), (47), (48), (49), (50), (51), (52), (53), (54), (55), (56), (57), (58), (59), (60), (61), (62),
1700+
(63), (64), (65), (66), (67), (68), (69), (70), (71), (72), (73), (74), (75), (76), (77), (78), (79), (80),
1701+
(81), (82), (83), (84), (85), (86), (87), (88), (89), (90), (91), (92),(93),(94),(95),(96), (97), (98),
1702+
(99), (100), (101), (102), (103), (104), (105), (106), (107), (108), (109), (110), (111), (112), (113),
1703+
(114), (115), (116), (117), (118), (119), (120), (121), (122), (123), (124), (125), (126), (127), (128),
1704+
(129), (130), (131), (132), (133), (134), (135), (136), (137), (138), (139), (140), (141), (142), (143), (144), (145), (146),
1705+
(147), (148), (149), (150), (151), (152), (153), (154), (155), (156), (157), (158), (159), (160), (161),
1706+
(162), (163), (164), (165), (166), (167), (168), (169), (170), (171), (172), (173),
1707+
(174), (175), (176), (177), (178), (179), (180), (181), (182), (183), (2), (3), (4), (5), (6), (19), (35),
1708+
(7), (20), (8), (36), (219), (22), (10), (23), (37), (11), (24);
1709+
CREATE TABLE `t2` (`type` int , `id` int(32) NOT NULL primary key);
1710+
INSERT INTO `t2` VALUES
1711+
(2,2),(2,3),(1,4),(2,5),(1,6),(1,19),(5,7),(1,20),(1,8),(1,21),(1,9),
1712+
(1,22),(2,10),(1,23),(2,11),(1,24),(1,12),(1,25),(2,13),(2,26),(2,14),
1713+
(2,27),(1,15),(1,28),(3,16),(1,29),(2,17),(1,30),(5,18),(2,1);
1714+
CREATE TABLE `t3` (`ref_id` int(32) unsigned ,`type` varchar(80),`id` int(32) NOT NULL );
1715+
INSERT INTO `t3` VALUES
1716+
(1,'incident',31),(2,'faux pas',32),
1717+
(5,'oopsies',33),(3,'deniable',34),
1718+
(11,'wasntme',35),(10,'wasntme',36),
1719+
(17,'faux pas',37),(13,'unlikely',38),
1720+
(13,'improbable',39),(14,'incident',40),
1721+
(26,'problem',41),(14,'problem',42),
1722+
(26,'incident',43),(27,'incident',44);
1723+
explain
1724+
SELECT t2.id FROM t2,t1
1725+
WHERE t2.id IN (SELECT t3.ref_id FROM t3,t1 where t3.id = t1.id) and t2.id = t1.id;
1726+
id select_type table type possible_keys key key_len ref rows Extra
1727+
1 PRIMARY t2 index PRIMARY PRIMARY 4 NULL 30 Using index
1728+
1 PRIMARY <subquery2> eq_ref distinct_key distinct_key 4 func 1 Using where
1729+
1 PRIMARY t1 eq_ref PRIMARY PRIMARY 4 test.t2.id 1 Using index
1730+
2 MATERIALIZED t3 ALL NULL NULL NULL NULL 14
1731+
2 MATERIALIZED t1 eq_ref PRIMARY PRIMARY 4 test.t3.id 1 Using index
1732+
SELECT t2.id FROM t2,t1
1733+
WHERE t2.id IN (SELECT t3.ref_id FROM t3,t1 where t3.id = t1.id) and t2.id = t1.id;
1734+
id
1735+
10
1736+
11
1737+
set optimizer_switch='materialization=off';
1738+
SELECT t2.id FROM t2,t1
1739+
WHERE t2.id IN (SELECT t3.ref_id FROM t3,t1 where t3.id = t1.id) and t2.id = t1.id;
1740+
id
1741+
11
1742+
10
1743+
set optimizer_switch='materialization=on';
1744+
DROP TABLE t1,t2,t3;
1745+
#
16951746
# MDEV-15247: Crash when SET NAMES 'utf8' is set
16961747
#
16971748
CREATE TABLE t1 (

mysql-test/suite/vcol/t/vcol_misc.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,10 @@ SET sql_mode=DEFAULT;
327327

328328
--copy_file std_data/frm/t1.frm $MYSQLD_DATADIR/test/t1.frm
329329
SHOW TABLES;
330+
--replace_result $MYSQLD_DATADIR ./
330331
--error ER_NOT_FORM_FILE
331332
SHOW CREATE TABLE t1;
333+
--replace_result $MYSQLD_DATADIR ./
332334
--error ER_NOT_FORM_FILE
333335
ALTER TABLE t1;
334336
--remove_file $MYSQLD_DATADIR/test/t1.frm

mysql-test/t/derived.test

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -913,6 +913,7 @@ CREATE TABLE t3 (c VARCHAR(1024) CHARACTER SET utf8, d INT) ENGINE=MyISAM;
913913
CREATE OR REPLACE ALGORITHM=TEMPTABLE VIEW v3 AS SELECT * FROM t3;
914914
INSERT INTO t3 VALUES ('abc',NULL),('def',4);
915915

916+
set @save_join_cache_level= @@join_cache_level;
916917
SET join_cache_level= 8;
917918
explain
918919
SELECT * FROM v1, t2, v3 WHERE a = c AND b = d;
@@ -935,5 +936,25 @@ call pr(2);
935936
drop procedure pr;
936937
drop view v1;
937938
drop table t1;
939+
set @@join_cache_level= @save_join_cache_level;
938940

941+
--echo #
942+
--echo # MDEV-16307: Incorrect results when using BNLH join instead of BNL join with views
943+
--echo #
944+
945+
CREATE TABLE t1 (c1 text, c2 int);
946+
INSERT INTO t1 VALUES ('a',1), ('c',3), ('g',7), ('d',4), ('c',3);
947+
CREATE TABLE t2 (c1 text, c2 int);
948+
INSERT INTO t2 VALUES ('b',2), ('c',3);
949+
CREATE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT * FROM t1;
950+
951+
explain SELECT v1.c1, v1.c2, t2.c1, t2.c2 FROM v1, t2 WHERE v1.c1=t2.c1;
952+
SELECT v1.c1, v1.c2, t2.c1, t2.c2 FROM v1, t2 WHERE v1.c1=t2.c1;
953+
set @save_join_cache_level= @@join_cache_level;
954+
set @@join_cache_level=4;
955+
explain SELECT v1.c1, v1.c2, t2.c1, t2.c2 FROM v1, t2 WHERE v1.c1=t2.c1;
956+
SELECT v1.c1, v1.c2, t2.c1, t2.c2 FROM v1, t2 WHERE v1.c1=t2.c1;
957+
drop table t1,t2;
958+
drop view v1;
959+
set @@join_cache_level= @save_join_cache_level;
939960
--echo # end of 5.5

mysql-test/t/join.test

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,6 +1160,59 @@ DROP TABLE t1,t2;
11601160

11611161
SET optimizer_switch=@save_optimizer_switch;
11621162

1163+
--echo #
1164+
--echo # MDEV-16512
1165+
--echo # Server crashes in find_field_in_table_ref on 2nd execution of SP referring to
1166+
--echo # non-existing field
1167+
--echo #
1168+
1169+
CREATE TABLE t (i INT);
1170+
CREATE PROCEDURE p() SELECT t1.f FROM t AS t1 JOIN t AS t2 USING (f);
1171+
--error ER_BAD_FIELD_ERROR
1172+
CALL p;
1173+
--error ER_BAD_FIELD_ERROR
1174+
CALL p;
1175+
FLUSH TABLES;
1176+
--error ER_BAD_FIELD_ERROR
1177+
CALL p;
1178+
DROP TABLE t;
1179+
1180+
#
1181+
# Fix the table definition to match the using
1182+
#
1183+
1184+
CREATE TABLE t (f INT);
1185+
#
1186+
# The following shouldn't fail as the table is now matching the using
1187+
#
1188+
--error ER_BAD_FIELD_ERROR
1189+
CALL p;
1190+
DROP TABLE t;
1191+
CREATE TABLE t (i INT);
1192+
--error ER_BAD_FIELD_ERROR
1193+
CALL p;
1194+
DROP PROCEDURE p;
1195+
DROP TABLE t;
1196+
1197+
CREATE TABLE t1 (a INT, b INT);
1198+
CREATE TABLE t2 (a INT);
1199+
CREATE TABLE t3 (a INT, c INT);
1200+
CREATE TABLE t4 (a INT, c INT);
1201+
CREATE TABLE t5 (a INT, c INT);
1202+
CREATE PROCEDURE p1() SELECT c FROM t1 JOIN (t2 LEFT JOIN t3 USING (a) LEFT JOIN t4 USING (a)
1203+
LEFT JOIN t5 USING (a)) USING (a);
1204+
--error ER_NON_UNIQ_ERROR
1205+
CALL p1;
1206+
--error ER_NON_UNIQ_ERROR
1207+
CALL p1;
1208+
DROP PROCEDURE p1;
1209+
DROP TABLE t1,t2,t3,t4,t5;
1210+
1211+
--echo #
1212+
--echo # End of MariaDB 5.5 tests
1213+
--echo #
1214+
1215+
11631216
--echo #
11641217
--echo # Bug #35268: Parser can't handle STRAIGHT_JOIN with USING
11651218
--echo #

mysql-test/t/join_cache.test

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3835,6 +3835,37 @@ set optimizer_switch=@save_optimizer_switch;
38353835

38363836
DROP TABLE t1,t4,t5,t2;
38373837

3838+
--echo #
3839+
--echo # MDEV-16603: BNLH for query with materialized semi-join
3840+
--echo #
3841+
3842+
--source include/have_innodb.inc
3843+
3844+
set join_cache_level=4;
3845+
3846+
CREATE TABLE t1 ( i1 int, v1 varchar(1)) ENGINE=InnoDB;
3847+
INSERT INTO t1 VALUES (7,'x');
3848+
3849+
CREATE TABLE t2 (i1 int, v1 varchar(1), KEY v1 (v1,i1)) ENGINE=InnoDB;
3850+
3851+
INSERT INTO t2 VALUES
3852+
(NULL,'x'),(1,'x'),(3,'x'),(5,'x'),(8,'x'),(48,'x'),
3853+
(228,'x'),(3,'y'),(1,'z'),(9,'z');
3854+
3855+
CREATE TABLE temp
3856+
SELECT t1.i1 AS f1, t1.v1 AS f2 FROM (t2 JOIN t1 ON (t1.v1 = t2.v1));
3857+
3858+
let $q =
3859+
SELECT * FROM temp
3860+
WHERE (f1,f2) IN (SELECT t1.i1, t1.v1 FROM (t2 JOIN t1 ON (t1.v1 = t2.v1)));
3861+
3862+
eval $q;
3863+
eval EXPLAIN EXTENDED $q;
3864+
3865+
DROP TABLE t1,t2,temp;
3866+
3867+
SET join_cache_level = default;
3868+
38383869
--echo #
38393870
--echo # MDEV-5123 Remove duplicated conditions pushed both to join_tab->select_cond and join_tab->cache_select->cond for blocked joins.
38403871
--echo #
@@ -3912,5 +3943,4 @@ SELECT * FROM INFORMATION_SCHEMA.PROFILING, mysql.user WHERE password_expired =
39123943
set join_cache_level=default;
39133944

39143945
# The following command must be the last one the file
3915-
# this must be the last command in the file
39163946
set @@optimizer_switch=@save_optimizer_switch;

mysql-test/t/subselect_sj2_mat.test

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,55 @@ WHERE (
346346
);
347347
drop table t1;
348348

349+
--echo #
350+
--echo # MDEV-15982: Incorrect results when subquery is materialized
351+
--echo #
352+
353+
CREATE TABLE `t1` (`id` int(32) NOT NULL primary key);
354+
INSERT INTO `t1` VALUES
355+
(45), (46), (47), (48), (49), (50), (51), (52), (53), (54), (55), (56), (57), (58), (59), (60), (61), (62),
356+
(63), (64), (65), (66), (67), (68), (69), (70), (71), (72), (73), (74), (75), (76), (77), (78), (79), (80),
357+
(81), (82), (83), (84), (85), (86), (87), (88), (89), (90), (91), (92),(93),(94),(95),(96), (97), (98),
358+
(99), (100), (101), (102), (103), (104), (105), (106), (107), (108), (109), (110), (111), (112), (113),
359+
(114), (115), (116), (117), (118), (119), (120), (121), (122), (123), (124), (125), (126), (127), (128),
360+
(129), (130), (131), (132), (133), (134), (135), (136), (137), (138), (139), (140), (141), (142), (143), (144), (145), (146),
361+
(147), (148), (149), (150), (151), (152), (153), (154), (155), (156), (157), (158), (159), (160), (161),
362+
(162), (163), (164), (165), (166), (167), (168), (169), (170), (171), (172), (173),
363+
(174), (175), (176), (177), (178), (179), (180), (181), (182), (183), (2), (3), (4), (5), (6), (19), (35),
364+
(7), (20), (8), (36), (219), (22), (10), (23), (37), (11), (24);
365+
366+
CREATE TABLE `t2` (`type` int , `id` int(32) NOT NULL primary key);
367+
INSERT INTO `t2` VALUES
368+
(2,2),(2,3),(1,4),(2,5),(1,6),(1,19),(5,7),(1,20),(1,8),(1,21),(1,9),
369+
(1,22),(2,10),(1,23),(2,11),(1,24),(1,12),(1,25),(2,13),(2,26),(2,14),
370+
(2,27),(1,15),(1,28),(3,16),(1,29),(2,17),(1,30),(5,18),(2,1);
371+
372+
CREATE TABLE `t3` (`ref_id` int(32) unsigned ,`type` varchar(80),`id` int(32) NOT NULL );
373+
INSERT INTO `t3` VALUES
374+
(1,'incident',31),(2,'faux pas',32),
375+
(5,'oopsies',33),(3,'deniable',34),
376+
(11,'wasntme',35),(10,'wasntme',36),
377+
(17,'faux pas',37),(13,'unlikely',38),
378+
(13,'improbable',39),(14,'incident',40),
379+
(26,'problem',41),(14,'problem',42),
380+
(26,'incident',43),(27,'incident',44);
381+
382+
explain
383+
SELECT t2.id FROM t2,t1
384+
WHERE t2.id IN (SELECT t3.ref_id FROM t3,t1 where t3.id = t1.id) and t2.id = t1.id;
385+
386+
SELECT t2.id FROM t2,t1
387+
WHERE t2.id IN (SELECT t3.ref_id FROM t3,t1 where t3.id = t1.id) and t2.id = t1.id;
388+
389+
set optimizer_switch='materialization=off';
390+
391+
SELECT t2.id FROM t2,t1
392+
WHERE t2.id IN (SELECT t3.ref_id FROM t3,t1 where t3.id = t1.id) and t2.id = t1.id;
393+
set optimizer_switch='materialization=on';
394+
395+
DROP TABLE t1,t2,t3;
396+
397+
349398
--echo #
350399
--echo # MDEV-15247: Crash when SET NAMES 'utf8' is set
351400
--echo #

0 commit comments

Comments
 (0)