Commit 7548c3d8 authored by vasil's avatar vasil

branches/zip:

Change the patch to fix the failing mysql-test index_merge_innodb.

The previous variant is inappropriate because myisam results are different
(2 instead of 4) and then the index_merge_myisam test fails.
parent fae1fdbb
...@@ -3,27 +3,29 @@ number generator (it picks up random pages to sample). After an ...@@ -3,27 +3,29 @@ number generator (it picks up random pages to sample). After an
optimization that was made in r2625 the following EXPLAINs started optimization that was made in r2625 the following EXPLAINs started
returning a different number of rows (3 instead of 4). returning a different number of rows (3 instead of 4).
This patch replaces whatever is returned for number of rows with 4 so This patch adjusts the result file.
that the test does not fail.
This patch cannot be proposed to MySQL because the failures occur only This patch cannot be proposed to MySQL because the failures occur only
in this tree and do not occur in the standard InnoDB 5.1. Furthermore, in this tree and do not occur in the standard InnoDB 5.1. Furthermore,
the file index_merge2.inc is used by other engines too. the file index_merge2.inc is used by other engines too.
--- mysql-test/include/index_merge2.inc.orig 2008-09-26 13:41:50.000000000 +0300 --- mysql-test/r/index_merge_innodb.result.orig 2008-09-30 18:32:13.000000000 +0300
+++ mysql-test/include/index_merge2.inc 2008-09-26 14:32:58.000000000 +0300 +++ mysql-test/r/index_merge_innodb.result 2008-09-30 18:33:01.000000000 +0300
@@ -122,12 +122,14 @@ @@ -111,7 +111,7 @@
analyze table t1;
select count(*) from t1;
+-- replace_column 9 4
explain select count(*) from t1 where explain select count(*) from t1 where
key1a = 2 and key1b is null and key2a = 2 and key2b is null; key1a = 2 and key1b is null and key2a = 2 and key2b is null;
id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge i1,i2 i1,i2 10,10 NULL 4 Using intersect(i1,i2); Using where; Using index
+1 SIMPLE t1 index_merge i1,i2 i1,i2 10,10 NULL 3 Using intersect(i1,i2); Using where; Using index
select count(*) from t1 where select count(*) from t1 where
key1a = 2 and key1b is null and key2a = 2 and key2b is null; key1a = 2 and key1b is null and key2a = 2 and key2b is null;
count(*)
+-- replace_column 9 4 @@ -119,7 +119,7 @@
explain select count(*) from t1 where explain select count(*) from t1 where
key1a = 2 and key1b is null and key3a = 2 and key3b is null; key1a = 2 and key1b is null and key3a = 2 and key3b is null;
id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t1 index_merge i1,i3 i1,i3 10,10 NULL 4 Using intersect(i1,i3); Using where; Using index
+1 SIMPLE t1 index_merge i1,i3 i1,i3 10,10 NULL 3 Using intersect(i1,i3); Using where; Using index
select count(*) from t1 where
key1a = 2 and key1b is null and key3a = 2 and key3b is null;
count(*)
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