From 9822dc2d9754daad37d739928de67571f9dbb81d Mon Sep 17 00:00:00 2001
From: David Gow <davidgow@google.com>
Date: Wed, 27 Apr 2016 10:55:29 -0700
Subject: [PATCH] De-flake main.range_innodb

The main.range_innodb test runs EXPLAIN on an innodb table, which may have a
different estimate of the affected rows. We should mask out the rows column.
---
 mysql-test/r/range_innodb.result | 4 ++--
 mysql-test/t/range_innodb.test   | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/mysql-test/r/range_innodb.result b/mysql-test/r/range_innodb.result
index 794e6c7..3f941df 100644
--- a/mysql-test/r/range_innodb.result
+++ b/mysql-test/r/range_innodb.result
@@ -34,6 +34,6 @@ test.t2	analyze	status	OK
 # The following must not use "Range checked for each record":
 explain select * from t0 left join t2 on t2.a <t0.a and t2.b between 50 and 250;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t0	ALL	NULL	NULL	NULL	NULL	10	
-1	SIMPLE	t2	range	a,b	b	5	NULL	201	Using where; Using join buffer (flat, BNL join)
+1	SIMPLE	t0	ALL	NULL	NULL	NULL	NULL	ROWS	
+1	SIMPLE	t2	range	a,b	b	5	NULL	ROWS	Using where; Using join buffer (flat, BNL join)
 drop table t0,t1,t2;
diff --git a/mysql-test/t/range_innodb.test b/mysql-test/t/range_innodb.test
index f767948..7624acf 100644
--- a/mysql-test/t/range_innodb.test
+++ b/mysql-test/t/range_innodb.test
@@ -41,6 +41,7 @@ from t1;
 
 analyze table t2;
 --echo # The following must not use "Range checked for each record":
+--replace_column 9 ROWS
 explain select * from t0 left join t2 on t2.a <t0.a and t2.b between 50 and 250;
 
 drop table t0,t1,t2;
-- 
2.8.0.rc3.226.g39d4020

