1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Fix the testcase for MDEV-30693

This commit is contained in:
Sergei Petrunia
2023-03-20 14:08:54 +03:00
parent 221b5d77ef
commit f6cb93ba8d
2 changed files with 2 additions and 2 deletions

View File

@ -2329,7 +2329,7 @@ CREATE TABLE t1 (c INT KEY) ENGINE=InnoDB;
SELECT * FROM (SELECT * FROM t1) a JOIN (SELECT * FROM (SELECT * FROM t1 GROUP BY c) d WHERE c>1) b ON a.c=b.c; SELECT * FROM (SELECT * FROM t1) a JOIN (SELECT * FROM (SELECT * FROM t1 GROUP BY c) d WHERE c>1) b ON a.c=b.c;
c c c c
DROP TABLE t1; DROP TABLE t1;
SET optimizer_use_condition_selectivity=1; SET optimizer_use_condition_selectivity=@tmp_oucs;
# #
# End of 11.0 tests # End of 11.0 tests
# #

View File

@ -289,7 +289,7 @@ set @tmp_oucs= @@optimizer_use_condition_selectivity;
CREATE TABLE t1 (c INT KEY) ENGINE=InnoDB; CREATE TABLE t1 (c INT KEY) ENGINE=InnoDB;
SELECT * FROM (SELECT * FROM t1) a JOIN (SELECT * FROM (SELECT * FROM t1 GROUP BY c) d WHERE c>1) b ON a.c=b.c; SELECT * FROM (SELECT * FROM t1) a JOIN (SELECT * FROM (SELECT * FROM t1 GROUP BY c) d WHERE c>1) b ON a.c=b.c;
DROP TABLE t1; DROP TABLE t1;
SET optimizer_use_condition_selectivity=1; SET optimizer_use_condition_selectivity=@tmp_oucs;
--echo # --echo #
--echo # End of 11.0 tests --echo # End of 11.0 tests