Commit 1872a142 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-10003 main.range_innodb retuns a wrong number of rows in EXPLAIN

Let us specify STATS_AUTO_RECALC=0 for the failing section of the test.
It is possible that this test started failing sporadically ever since
commit 9608773f was applied and
tests no longer globally disable the InnoDB persistent statistics.
parent 19852040
...@@ -44,13 +44,13 @@ drop table t0,t1,t2; ...@@ -44,13 +44,13 @@ drop table t0,t1,t2;
create table t1 ( create table t1 (
pk int, a int, b int, pk int, a int, b int,
primary key (pk), index idx1(b), index idx2(b) primary key (pk), index idx1(b), index idx2(b)
) engine=innodb; ) engine=innodb STATS_AUTO_RECALC=0;
Warnings: Warnings:
Note 1831 Duplicate index `idx2`. This is deprecated and will be disallowed in a future release Note 1831 Duplicate index `idx2`. This is deprecated and will be disallowed in a future release
insert into t1 values (1,6,0),(2,1,0),(3,5,2),(4,8,0); insert into t1 values (1,6,0),(2,1,0),(3,5,2),(4,8,0);
create table t2 (c int) engine=innodb; create table t2 (c int) engine=innodb STATS_AUTO_RECALC=0;
insert into t2 values (1),(2); insert into t2 values (1),(2);
create table t3 (d int) engine=innodb; create table t3 (d int) engine=innodb STATS_AUTO_RECALC=0;
insert into t3 values (3),(-1),(4); insert into t3 values (3),(-1),(4);
set @save_optimizer_switch=@@optimizer_switch; set @save_optimizer_switch=@@optimizer_switch;
set optimizer_switch='extended_keys=on'; set optimizer_switch='extended_keys=on';
......
...@@ -54,11 +54,11 @@ drop table t0,t1,t2; ...@@ -54,11 +54,11 @@ drop table t0,t1,t2;
create table t1 ( create table t1 (
pk int, a int, b int, pk int, a int, b int,
primary key (pk), index idx1(b), index idx2(b) primary key (pk), index idx1(b), index idx2(b)
) engine=innodb; ) engine=innodb STATS_AUTO_RECALC=0;
insert into t1 values (1,6,0),(2,1,0),(3,5,2),(4,8,0); insert into t1 values (1,6,0),(2,1,0),(3,5,2),(4,8,0);
create table t2 (c int) engine=innodb; create table t2 (c int) engine=innodb STATS_AUTO_RECALC=0;
insert into t2 values (1),(2); insert into t2 values (1),(2);
create table t3 (d int) engine=innodb; create table t3 (d int) engine=innodb STATS_AUTO_RECALC=0;
insert into t3 values (3),(-1),(4); insert into t3 values (3),(-1),(4);
set @save_optimizer_switch=@@optimizer_switch; set @save_optimizer_switch=@@optimizer_switch;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment