mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Change the default @@optimizer_switch settings:
- semijoin=on - firstmatch=on - loosescan=on
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
drop table if exists x1;
|
||||
drop table if exists x2;
|
||||
set @tmp_subselect_nulls=@@optimizer_switch;
|
||||
set optimizer_switch='semijoin=off';
|
||||
create table x1(k int primary key, d1 int, d2 int);
|
||||
create table x2(k int primary key, d1 int, d2 int);
|
||||
insert into x1 values
|
||||
@ -110,5 +112,6 @@ where x1.d1=x2.d1 and x1.d2=x2.d2);
|
||||
k d1 d2
|
||||
10 10 10
|
||||
20 20 20
|
||||
set optimizer_switch= @tmp_subselect_nulls;
|
||||
drop table x1;
|
||||
drop table x2;
|
||||
|
Reference in New Issue
Block a user