mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
misc test/result fixes
mysql-test/include/have_xtradb.combinations: xtradb tests need this I_S table mysql-test/lib/mtr_cases.pm: fix for .deb and .rpm installations
This commit is contained in:
@ -4,10 +4,12 @@ plugin-load=$HA_XTRADB_SO
|
|||||||
innodb
|
innodb
|
||||||
innodb-cmpmem
|
innodb-cmpmem
|
||||||
innodb-trx
|
innodb-trx
|
||||||
|
innodb-sys-index
|
||||||
xtradb-admin-command
|
xtradb-admin-command
|
||||||
|
|
||||||
[xtradb]
|
[xtradb]
|
||||||
innodb
|
innodb
|
||||||
innodb-cmpmem
|
innodb-cmpmem
|
||||||
innodb-trx
|
innodb-trx
|
||||||
|
innodb-sys-index
|
||||||
xtradb-admin-command
|
xtradb-admin-command
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
--source include/have_udf.inc
|
--source include/have_udf.inc
|
||||||
|
--source include/master-slave.inc
|
||||||
|
|
||||||
#
|
#
|
||||||
# To run this tests the "sql/udf_example.c" need to be compiled into
|
# To run this tests the "sql/udf_example.c" need to be compiled into
|
||||||
|
@ -333,7 +333,7 @@ sub collect_one_suite
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@overlays = my_find_dir($::basedir,
|
@overlays = my_find_dir(dirname($::glob_mysql_test_dir),
|
||||||
["mysql-test/suite",
|
["mysql-test/suite",
|
||||||
"storage/*/mysql-test",
|
"storage/*/mysql-test",
|
||||||
"plugin/*/mysql-test"],
|
"plugin/*/mysql-test"],
|
||||||
@ -354,7 +354,7 @@ sub collect_one_suite
|
|||||||
$suitedir = shift @overlays;
|
$suitedir = shift @overlays;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@overlays = my_find_dir($::basedir,
|
@overlays = my_find_dir(dirname($::glob_mysql_test_dir),
|
||||||
["storage/*/mysql-test",
|
["storage/*/mysql-test",
|
||||||
"plugin/*/mysql-test"],
|
"plugin/*/mysql-test"],
|
||||||
['main'], NOT_REQUIRED);
|
['main'], NOT_REQUIRED);
|
||||||
|
@ -15,6 +15,7 @@ GLOBAL_VARIABLES
|
|||||||
INDEX_STATISTICS
|
INDEX_STATISTICS
|
||||||
INNODB_CMPMEM
|
INNODB_CMPMEM
|
||||||
INNODB_LOCKS
|
INNODB_LOCKS
|
||||||
|
INNODB_SYS_INDEXES
|
||||||
INNODB_TRX
|
INNODB_TRX
|
||||||
KEY_CACHES
|
KEY_CACHES
|
||||||
KEY_COLUMN_USAGE
|
KEY_COLUMN_USAGE
|
||||||
@ -69,6 +70,7 @@ GLOBAL_VARIABLES VARIABLE_NAME
|
|||||||
INDEX_STATISTICS TABLE_SCHEMA
|
INDEX_STATISTICS TABLE_SCHEMA
|
||||||
INNODB_CMPMEM page_size
|
INNODB_CMPMEM page_size
|
||||||
INNODB_LOCKS lock_id
|
INNODB_LOCKS lock_id
|
||||||
|
INNODB_SYS_INDEXES INDEX_ID
|
||||||
INNODB_TRX trx_id
|
INNODB_TRX trx_id
|
||||||
KEY_CACHES KEY_CACHE_NAME
|
KEY_CACHES KEY_CACHE_NAME
|
||||||
KEY_COLUMN_USAGE CONSTRAINT_SCHEMA
|
KEY_COLUMN_USAGE CONSTRAINT_SCHEMA
|
||||||
@ -123,6 +125,7 @@ GLOBAL_VARIABLES VARIABLE_NAME
|
|||||||
INDEX_STATISTICS TABLE_SCHEMA
|
INDEX_STATISTICS TABLE_SCHEMA
|
||||||
INNODB_CMPMEM page_size
|
INNODB_CMPMEM page_size
|
||||||
INNODB_LOCKS lock_id
|
INNODB_LOCKS lock_id
|
||||||
|
INNODB_SYS_INDEXES INDEX_ID
|
||||||
INNODB_TRX trx_id
|
INNODB_TRX trx_id
|
||||||
KEY_CACHES KEY_CACHE_NAME
|
KEY_CACHES KEY_CACHE_NAME
|
||||||
KEY_COLUMN_USAGE CONSTRAINT_SCHEMA
|
KEY_COLUMN_USAGE CONSTRAINT_SCHEMA
|
||||||
@ -183,6 +186,7 @@ GLOBAL_VARIABLES information_schema.GLOBAL_VARIABLES 1
|
|||||||
INDEX_STATISTICS information_schema.INDEX_STATISTICS 1
|
INDEX_STATISTICS information_schema.INDEX_STATISTICS 1
|
||||||
INNODB_CMPMEM information_schema.INNODB_CMPMEM 1
|
INNODB_CMPMEM information_schema.INNODB_CMPMEM 1
|
||||||
INNODB_LOCKS information_schema.INNODB_LOCKS 1
|
INNODB_LOCKS information_schema.INNODB_LOCKS 1
|
||||||
|
INNODB_SYS_INDEXES information_schema.INNODB_SYS_INDEXES 1
|
||||||
INNODB_TRX information_schema.INNODB_TRX 1
|
INNODB_TRX information_schema.INNODB_TRX 1
|
||||||
KEY_CACHES information_schema.KEY_CACHES 1
|
KEY_CACHES information_schema.KEY_CACHES 1
|
||||||
KEY_COLUMN_USAGE information_schema.KEY_COLUMN_USAGE 1
|
KEY_COLUMN_USAGE information_schema.KEY_COLUMN_USAGE 1
|
||||||
@ -226,6 +230,7 @@ Database: information_schema
|
|||||||
| INDEX_STATISTICS |
|
| INDEX_STATISTICS |
|
||||||
| INNODB_CMPMEM |
|
| INNODB_CMPMEM |
|
||||||
| INNODB_LOCKS |
|
| INNODB_LOCKS |
|
||||||
|
| INNODB_SYS_INDEXES |
|
||||||
| INNODB_TRX |
|
| INNODB_TRX |
|
||||||
| KEY_CACHES |
|
| KEY_CACHES |
|
||||||
| KEY_COLUMN_USAGE |
|
| KEY_COLUMN_USAGE |
|
||||||
@ -270,6 +275,7 @@ Database: INFORMATION_SCHEMA
|
|||||||
| INDEX_STATISTICS |
|
| INDEX_STATISTICS |
|
||||||
| INNODB_CMPMEM |
|
| INNODB_CMPMEM |
|
||||||
| INNODB_LOCKS |
|
| INNODB_LOCKS |
|
||||||
|
| INNODB_SYS_INDEXES |
|
||||||
| INNODB_TRX |
|
| INNODB_TRX |
|
||||||
| KEY_CACHES |
|
| KEY_CACHES |
|
||||||
| KEY_COLUMN_USAGE |
|
| KEY_COLUMN_USAGE |
|
||||||
@ -303,5 +309,5 @@ Wildcard: inf_rmation_schema
|
|||||||
| information_schema |
|
| information_schema |
|
||||||
SELECT table_schema, count(*) FROM information_schema.TABLES WHERE table_schema IN ('mysql', 'INFORMATION_SCHEMA', 'test', 'mysqltest') AND table_name<>'ndb_binlog_index' AND table_name<>'ndb_apply_status' GROUP BY TABLE_SCHEMA;
|
SELECT table_schema, count(*) FROM information_schema.TABLES WHERE table_schema IN ('mysql', 'INFORMATION_SCHEMA', 'test', 'mysqltest') AND table_name<>'ndb_binlog_index' AND table_name<>'ndb_apply_status' GROUP BY TABLE_SCHEMA;
|
||||||
table_schema count(*)
|
table_schema count(*)
|
||||||
information_schema 39
|
information_schema 40
|
||||||
mysql 23
|
mysql 23
|
||||||
|
@ -1,14 +1,5 @@
|
|||||||
--- r/innodb_icp.result 2012-01-09 16:13:21.000000000 +0100
|
--- r/innodb_icp.result 2012-02-25 17:31:11.000000000 +0100
|
||||||
+++ r/innodb_icp.reject 2012-02-07 12:45:59.000000000 +0100
|
+++ /usr/home/serg/Abk/mysql/5.5-mtr/mysql-test/r/innodb_icp,innodb_plugin.reject 2012-02-25 22:32:18.000000000 +0100
|
||||||
@@ -167,7 +167,7 @@
|
|
||||||
ORDER BY ts DESC
|
|
||||||
LIMIT 2;
|
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
|
||||||
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 4 Using index condition
|
|
||||||
+1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 4 Using where
|
|
||||||
|
|
||||||
DROP TABLE t1;
|
|
||||||
#
|
|
||||||
@@ -213,7 +213,7 @@
|
@@ -213,7 +213,7 @@
|
||||||
EXPLAIN
|
EXPLAIN
|
||||||
SELECT c1 FROM t3 WHERE c1 >= 'c-1004=w' and c1 <= 'c-1006=w' and i1 > 2;
|
SELECT c1 FROM t3 WHERE c1 >= 'c-1004=w' and c1 <= 'c-1006=w' and i1 > 2;
|
||||||
@ -18,35 +9,6 @@
|
|||||||
SELECT c1 FROM t3 WHERE c1 >= 'c-1004=w' and c1 <= 'c-1006=w' and i1 > 2;
|
SELECT c1 FROM t3 WHERE c1 >= 'c-1004=w' and c1 <= 'c-1006=w' and i1 > 2;
|
||||||
c1
|
c1
|
||||||
EXPLAIN
|
EXPLAIN
|
||||||
@@ -431,7 +431,7 @@
|
|
||||||
WHERE pk IN (SELECT it.pk FROM t2 JOIN t2 AS it ON it.i=it.i WHERE it.pk-t1.i<10);
|
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
|
||||||
1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where
|
|
||||||
-2 DEPENDENT SUBQUERY it eq_ref PRIMARY PRIMARY 4 func 1 Using index condition
|
|
||||||
+2 DEPENDENT SUBQUERY it eq_ref PRIMARY PRIMARY 4 func 1 Using where
|
|
||||||
2 DEPENDENT SUBQUERY t2 index NULL PRIMARY 4 NULL 3 Using where; Using index; Using join buffer (flat, BNL join)
|
|
||||||
SELECT * FROM t1
|
|
||||||
WHERE pk IN (SELECT it.pk FROM t2 JOIN t2 AS it ON it.i=it.i WHERE it.pk-t1.i<10);
|
|
||||||
@@ -452,7 +452,7 @@
|
|
||||||
INSERT INTO t1 VALUES (1,9),(2,7),(3,6),(4,3),(5,1);
|
|
||||||
EXPLAIN SELECT pk, c1 FROM t1 WHERE pk <> 3;
|
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
|
||||||
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 4 Using index condition
|
|
||||||
+1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 4 Using where
|
|
||||||
SET SESSION optimizer_switch='index_condition_pushdown=off';
|
|
||||||
SELECT pk, c1 FROM t1 WHERE pk <> 3;
|
|
||||||
pk c1
|
|
||||||
@@ -507,8 +507,8 @@
|
|
||||||
WHERE (t2.pk <= 4 AND t1.pk IN (2,1)) OR
|
|
||||||
(t1.pk > 1 AND t2.pk BETWEEN 6 AND 6);
|
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
|
||||||
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 1 Using index condition; Using where
|
|
||||||
-1 SIMPLE t2 range PRIMARY PRIMARY 4 NULL 2 Using index condition; Using where; Using join buffer (flat, BNL join)
|
|
||||||
+1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 1 Using where
|
|
||||||
+1 SIMPLE t2 range PRIMARY PRIMARY 4 NULL 2 Using where; Using join buffer (flat, BNL join)
|
|
||||||
SELECT c2 FROM t1 JOIN t2 ON t1.c1 = t2.c1
|
|
||||||
WHERE (t2.pk <= 4 AND t1.pk IN (2,1)) OR
|
|
||||||
(t1.pk > 1 AND t2.pk BETWEEN 6 AND 6);
|
|
||||||
@@ -637,7 +637,7 @@
|
@@ -637,7 +637,7 @@
|
||||||
WHERE NOT(b = 'Texas') AND b BETWEEN 'wy' AND 'y' OR b = 'Pennsylvania'
|
WHERE NOT(b = 'Texas') AND b BETWEEN 'wy' AND 'y' OR b = 'Pennsylvania'
|
||||||
ORDER BY a;
|
ORDER BY a;
|
||||||
@ -65,21 +27,23 @@
|
|||||||
SELECT * FROM t1
|
SELECT * FROM t1
|
||||||
WHERE NOT(b = 'Texas') AND b BETWEEN 'wy' AND 'y' OR b = 'Pennsylvania'
|
WHERE NOT(b = 'Texas') AND b BETWEEN 'wy' AND 'y' OR b = 'Pennsylvania'
|
||||||
ORDER BY a;
|
ORDER BY a;
|
||||||
@@ -680,7 +680,7 @@
|
@@ -825,15 +825,15 @@
|
||||||
SELECT t1.b, t1.c FROM t1, t2 WHERE t1.a = t2.a AND t1.b != 0
|
4 4
|
||||||
HAVING t1.c != 5 ORDER BY t1.c;
|
show status like "Handler_icp%";
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
Variable_name Value
|
||||||
-1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 2 Using index condition; Using where; Using filesort
|
-Handler_icp_attempts 2
|
||||||
+1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 2 Using where; Using filesort
|
-Handler_icp_match 1
|
||||||
1 SIMPLE t2 ref a a 515 test.t1.a 1 Using where
|
+Handler_icp_attempts 0
|
||||||
SELECT t1.b, t1.c FROM t1, t2 WHERE t1.a = t2.a AND t1.b != 0
|
+Handler_icp_match 0
|
||||||
HAVING t1.c != 5 ORDER BY t1.c;
|
SELECT * FROM t1 WHERE (c2='3' or c2='4') and c2 % 2 = 0 ;
|
||||||
@@ -793,7 +793,7 @@
|
c1 c2
|
||||||
1 PRIMARY t ALL PRIMARY,c NULL NULL NULL 64 Using where
|
4 4
|
||||||
1 PRIMARY t2 ref g g 5 test.t.c 9 Using where
|
show status like "Handler_icp%";
|
||||||
2 DEPENDENT SUBQUERY t1 index PRIMARY d 3 NULL 64 Using where; Using index
|
Variable_name Value
|
||||||
-2 DEPENDENT SUBQUERY t2 eq_ref PRIMARY PRIMARY 4 test.t1.a 1 Using index condition; Using where
|
-Handler_icp_attempts 2
|
||||||
+2 DEPENDENT SUBQUERY t2 eq_ref PRIMARY PRIMARY 4 test.t1.a 1 Using where
|
-Handler_icp_match 1
|
||||||
SELECT COUNT(*) FROM t1 AS t, t2
|
+Handler_icp_attempts 0
|
||||||
WHERE c = g
|
+Handler_icp_match 0
|
||||||
AND (EXISTS (SELECT * FROM t1, t2 WHERE a = f AND h <= t.e AND a > t.b)
|
DROP TABLE t1;
|
||||||
|
#
|
||||||
|
# BUG#920132: Assert trx->n_active_thrs == 1 failed at que0que.c line 1050
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
--- r/innodb_mrr_cpk.result 2011-10-21 23:35:26.000000000 +0200
|
--- r/innodb_mrr_cpk.result 2012-02-23 15:57:49.000000000 +0100
|
||||||
+++ r/innodb_mrr_cpk.reject 2012-02-07 12:47:49.000000000 +0100
|
+++ r/innodb_mrr_cpk,innodb_plugin.reject 2012-02-23 19:44:57.000000000 +0100
|
||||||
@@ -27,13 +27,13 @@
|
@@ -27,13 +27,13 @@
|
||||||
explain select * from t1, t2 where t1.a=t2.a;
|
explain select * from t1, t2 where t1.a=t2.a;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
@ -50,7 +50,7 @@
|
|||||||
explain select * from t1, t2 where t1.a=t2.a and t1.b=t2.b;
|
explain select * from t1, t2 where t1.a=t2.a and t1.b=t2.b;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using where
|
1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using where
|
||||||
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 30 test.t2.a,test.t2.b 1 Using index condition(BKA); Using join buffer (flat, BKA join); Key-ordered scan
|
-1 SIMPLE t1 eq_ref PRIMARY PRIMARY 30 test.t2.a,test.t2.b 1 Using where; Using join buffer (flat, BKA join); Key-ordered scan
|
||||||
+1 SIMPLE t1 eq_ref PRIMARY PRIMARY 30 test.t2.a,test.t2.b 1 Using where
|
+1 SIMPLE t1 eq_ref PRIMARY PRIMARY 30 test.t2.a,test.t2.b 1 Using where
|
||||||
select * from t1, t2 where t1.a=t2.a and t1.b=t2.b;
|
select * from t1, t2 where t1.a=t2.a and t1.b=t2.b;
|
||||||
a b filler a b
|
a b filler a b
|
||||||
@ -61,7 +61,7 @@
|
|||||||
explain select * from t1, t2 where t1.a=t2.a;
|
explain select * from t1, t2 where t1.a=t2.a;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using where
|
1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using where
|
||||||
-1 SIMPLE t1 ref PRIMARY PRIMARY 26 test.t2.a 1 Using index condition(BKA); Using join buffer (flat, BKA join); Key-ordered scan
|
-1 SIMPLE t1 ref PRIMARY PRIMARY 26 test.t2.a 1 Using where; Using join buffer (flat, BKA join); Key-ordered scan
|
||||||
+1 SIMPLE t1 ref PRIMARY PRIMARY 26 test.t2.a 1 Using where
|
+1 SIMPLE t1 ref PRIMARY PRIMARY 26 test.t2.a 1 Using where
|
||||||
select * from t1, t2 where t1.a=t2.a;
|
select * from t1, t2 where t1.a=t2.a;
|
||||||
a b filler a b
|
a b filler a b
|
||||||
@ -96,7 +96,7 @@
|
|||||||
explain select * from t1, t2 where t1.a=t2.a and t2.b + t1.b > 100;
|
explain select * from t1, t2 where t1.a=t2.a and t2.b + t1.b > 100;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using where
|
1 SIMPLE t2 ALL NULL NULL NULL NULL 3 Using where
|
||||||
-1 SIMPLE t1 ref PRIMARY PRIMARY 4 test.t2.a 1 Using index condition(BKA); Using join buffer (flat, BKA join); Key-ordered scan
|
-1 SIMPLE t1 ref PRIMARY PRIMARY 4 test.t2.a 1 Using where; Using join buffer (flat, BKA join); Key-ordered scan
|
||||||
+1 SIMPLE t1 ref PRIMARY PRIMARY 4 test.t2.a 1 Using where
|
+1 SIMPLE t1 ref PRIMARY PRIMARY 4 test.t2.a 1 Using where
|
||||||
select * from t1, t2 where t1.a=t2.a and t2.b + t1.b > 100;
|
select * from t1, t2 where t1.a=t2.a and t2.b + t1.b > 100;
|
||||||
a b c filler a b
|
a b c filler a b
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
--- r/plugin_innodb.result 2011-10-21 23:35:26.000000000 +0200
|
|
||||||
+++ r/plugin_innodb.reject 2012-02-08 13:59:19.000000000 +0100
|
|
||||||
@@ -4,6 +4,9 @@
|
|
||||||
alter table mysql.plugin engine=innodb;
|
|
||||||
restart
|
|
||||||
create table t1(a int) engine=example;
|
|
||||||
+Warnings:
|
|
||||||
+Warning 1286 Unknown storage engine 'example'
|
|
||||||
+Warning 1266 Using storage engine MyISAM for table 't1'
|
|
||||||
select * from t1;
|
|
||||||
a
|
|
||||||
drop table t1;
|
|
@ -1,5 +1,5 @@
|
|||||||
--- r/range_vs_index_merge_innodb.result 2011-11-23 22:19:38.000000000 +0100
|
--- r/range_vs_index_merge_innodb.result 2012-02-23 15:57:49.000000000 +0100
|
||||||
+++ r/range_vs_index_merge_innodb.reject 2012-02-08 13:04:41.000000000 +0100
|
+++ r/range_vs_index_merge_innodb,innodb_plugin.reject 2012-02-23 19:46:02.000000000 +0100
|
||||||
@@ -50,14 +50,14 @@
|
@@ -50,14 +50,14 @@
|
||||||
WHERE (Population >= 100000 OR Name LIKE 'P%') AND Country='CAN' OR
|
WHERE (Population >= 100000 OR Name LIKE 'P%') AND Country='CAN' OR
|
||||||
(Population < 100000 OR Name Like 'T%') AND Country='ARG';
|
(Population < 100000 OR Name Like 'T%') AND Country='ARG';
|
||||||
@ -87,22 +87,7 @@
|
|||||||
EXPLAIN
|
EXPLAIN
|
||||||
SELECT * FROM City
|
SELECT * FROM City
|
||||||
WHERE (Name < 'Ac' AND (Country > 'A' AND Country < 'B')) OR
|
WHERE (Name < 'Ac' AND (Country > 'A' AND Country < 'B')) OR
|
||||||
@@ -328,34 +328,34 @@
|
@@ -340,15 +340,15 @@
|
||||||
EXPLAIN
|
|
||||||
SELECT * FROM City WHERE (ID < 10) OR (ID BETWEEN 100 AND 110);
|
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
|
||||||
-1 SIMPLE City range PRIMARY PRIMARY 4 NULL 20 Using index condition; Using where
|
|
||||||
+1 SIMPLE City range PRIMARY PRIMARY 4 NULL 20 Using where
|
|
||||||
EXPLAIN
|
|
||||||
SELECT * FROM City WHERE (ID < 200) OR (ID BETWEEN 100 AND 200);
|
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
|
||||||
-1 SIMPLE City range PRIMARY PRIMARY 4 NULL 200 Using index condition; Using where
|
|
||||||
+1 SIMPLE City range PRIMARY PRIMARY 4 NULL 200 Using where
|
|
||||||
EXPLAIN
|
|
||||||
SELECT * FROM City WHERE (ID < 600) OR (ID BETWEEN 900 AND 1500);
|
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
|
||||||
-1 SIMPLE City range PRIMARY PRIMARY 4 NULL 1198 Using index condition; Using where
|
|
||||||
+1 SIMPLE City range PRIMARY PRIMARY 4 NULL 1198 Using where
|
|
||||||
EXPLAIN
|
EXPLAIN
|
||||||
SELECT * FROM City WHERE Country > 'A' AND Country < 'ARG';
|
SELECT * FROM City WHERE Country > 'A' AND Country < 'ARG';
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
@ -121,24 +106,7 @@
|
|||||||
EXPLAIN
|
EXPLAIN
|
||||||
SELECT * FROM City
|
SELECT * FROM City
|
||||||
WHERE ((ID < 10) AND (Name LIKE 'H%' OR (Country > 'A' AND Country < 'ARG')))
|
WHERE ((ID < 10) AND (Name LIKE 'H%' OR (Country > 'A' AND Country < 'ARG')))
|
||||||
OR ((ID BETWEEN 100 AND 110) AND
|
@@ -577,27 +577,27 @@
|
||||||
(Name LIKE 'P%' OR (Population > 103000 AND Population < 104000)));
|
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
|
||||||
-1 SIMPLE City range PRIMARY,Population,Country,Name PRIMARY 4 NULL 20 Using index condition; Using where
|
|
||||||
+1 SIMPLE City range PRIMARY,Population,Country,Name PRIMARY 4 NULL 20 Using where
|
|
||||||
EXPLAIN
|
|
||||||
SELECT * FROM City
|
|
||||||
WHERE ((ID < 800) AND (Name LIKE 'Ha%' OR (Country > 'A' AND Country < 'ARG')))
|
|
||||||
@@ -369,7 +369,7 @@
|
|
||||||
OR ((ID BETWEEN 100 AND 200) AND
|
|
||||||
(Name LIKE 'Pa%' OR (Population > 103000 AND Population < 104000)));
|
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
|
||||||
-1 SIMPLE City range PRIMARY,Population,Country,Name PRIMARY 4 NULL 200 Using index condition; Using where
|
|
||||||
+1 SIMPLE City range PRIMARY,Population,Country,Name PRIMARY 4 NULL 200 Using where
|
|
||||||
SELECT * FROM City USE INDEX ()
|
|
||||||
WHERE ((ID < 10) AND (Name LIKE 'H%' OR (Country > 'A' AND Country < 'ARG')))
|
|
||||||
OR ((ID BETWEEN 100 AND 110) AND
|
|
||||||
@@ -577,39 +577,39 @@
|
|
||||||
EXPLAIN
|
EXPLAIN
|
||||||
SELECT * FROM City WHERE Population > 101000 AND Population < 102000;
|
SELECT * FROM City WHERE Population > 101000 AND Population < 102000;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
@ -172,13 +140,7 @@
|
|||||||
EXPLAIN
|
EXPLAIN
|
||||||
SELECT * FROM City WHERE ID BETWEEN 3400 AND 3800;
|
SELECT * FROM City WHERE ID BETWEEN 3400 AND 3800;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
-1 SIMPLE City range PRIMARY PRIMARY 4 NULL 400 Using index condition
|
@@ -609,7 +609,7 @@
|
||||||
+1 SIMPLE City range PRIMARY PRIMARY 4 NULL 400 Using where
|
|
||||||
EXPLAIN
|
|
||||||
SELECT * FROM City WHERE ID BETWEEN 3790 AND 3800;
|
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
|
||||||
-1 SIMPLE City range PRIMARY PRIMARY 4 NULL 11 Using index condition
|
|
||||||
+1 SIMPLE City range PRIMARY PRIMARY 4 NULL 11 Using where
|
|
||||||
EXPLAIN
|
EXPLAIN
|
||||||
SELECT * FROM City WHERE Name LIKE 'P%';
|
SELECT * FROM City WHERE Name LIKE 'P%';
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
@ -225,7 +187,7 @@
|
|||||||
SELECT * FROM City
|
SELECT * FROM City
|
||||||
WHERE ((Population > 101000 AND Population < 103000) OR Name LIKE 'Pas%')
|
WHERE ((Population > 101000 AND Population < 103000) OR Name LIKE 'Pas%')
|
||||||
AND Country='USA';
|
AND Country='USA';
|
||||||
@@ -753,51 +753,51 @@
|
@@ -753,15 +753,15 @@
|
||||||
EXPLAIN
|
EXPLAIN
|
||||||
SELECT * FROM City WHERE Country='USA';
|
SELECT * FROM City WHERE Country='USA';
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
@ -244,33 +206,7 @@
|
|||||||
EXPLAIN
|
EXPLAIN
|
||||||
SELECT * FROM City WHERE ID BETWEEN 3790 AND 3800;
|
SELECT * FROM City WHERE ID BETWEEN 3790 AND 3800;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
-1 SIMPLE City range PRIMARY PRIMARY 4 NULL 11 Using index condition
|
@@ -789,15 +789,15 @@
|
||||||
+1 SIMPLE City range PRIMARY PRIMARY 4 NULL 11 Using where
|
|
||||||
EXPLAIN
|
|
||||||
SELECT * FROM City WHERE ID BETWEEN 4025 AND 4035;
|
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
|
||||||
-1 SIMPLE City range PRIMARY PRIMARY 4 NULL 11 Using index condition
|
|
||||||
+1 SIMPLE City range PRIMARY PRIMARY 4 NULL 11 Using where
|
|
||||||
EXPLAIN
|
|
||||||
SELECT * FROM City WHERE ID BETWEEN 4028 AND 4032;
|
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
|
||||||
-1 SIMPLE City range PRIMARY PRIMARY 4 NULL 5 Using index condition
|
|
||||||
+1 SIMPLE City range PRIMARY PRIMARY 4 NULL 5 Using where
|
|
||||||
EXPLAIN
|
|
||||||
SELECT * FROM City WHERE ID BETWEEN 3500 AND 3800;
|
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
|
||||||
-1 SIMPLE City range PRIMARY PRIMARY 4 NULL 300 Using index condition
|
|
||||||
+1 SIMPLE City range PRIMARY PRIMARY 4 NULL 300 Using where
|
|
||||||
EXPLAIN
|
|
||||||
SELECT * FROM City WHERE ID BETWEEN 4000 AND 4300;
|
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
|
||||||
-1 SIMPLE City range PRIMARY PRIMARY 4 NULL 80 Using index condition
|
|
||||||
+1 SIMPLE City range PRIMARY PRIMARY 4 NULL 80 Using where
|
|
||||||
EXPLAIN
|
|
||||||
SELECT * FROM City WHERE ID BETWEEN 250 and 260 ;
|
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
|
||||||
-1 SIMPLE City range PRIMARY PRIMARY 4 NULL 11 Using index condition
|
|
||||||
+1 SIMPLE City range PRIMARY PRIMARY 4 NULL 11 Using where
|
|
||||||
EXPLAIN
|
EXPLAIN
|
||||||
SELECT * FROM City WHERE (Population > 101000 AND Population < 102000);
|
SELECT * FROM City WHERE (Population > 101000 AND Population < 102000);
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
@ -315,12 +251,3 @@
|
|||||||
SELECT * FROM City USE INDEX ()
|
SELECT * FROM City USE INDEX ()
|
||||||
WHERE ((Population > 101000 AND Population < 11000) OR
|
WHERE ((Population > 101000 AND Population < 11000) OR
|
||||||
ID BETWEEN 3500 AND 3800) AND Country='USA'
|
ID BETWEEN 3500 AND 3800) AND Country='USA'
|
||||||
@@ -1422,7 +1422,7 @@
|
|
||||||
WHERE t1.a>300 AND t1.c!=0 AND t1.b>=350 AND t1.b<=400 AND
|
|
||||||
(t1.c=0 OR t1.a=500);
|
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
|
||||||
-1 SIMPLE t1 range PRIMARY,idx PRIMARY 4 NULL 1 Using index condition; Using where
|
|
||||||
+1 SIMPLE t1 range PRIMARY,idx PRIMARY 4 NULL 1 Using where
|
|
||||||
SELECT * FROM t1
|
|
||||||
WHERE t1.a>300 AND t1.c!=0 AND t1.b>=350 AND t1.b<=400 AND
|
|
||||||
(t1.c=0 OR t1.a=500);
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# The test is very crude: we simply overflow the buffer pool with such a number of
|
# The test is very crude: we simply overflow the buffer pool with such a number of
|
||||||
# new/modified pages that some flushing is bound to happen.
|
# new/modified pages that some flushing is bound to happen.
|
||||||
|
|
||||||
--source include/have_innodb.inc
|
--source include/have_xtradb.inc
|
||||||
--source include/big_test.inc
|
--source include/big_test.inc
|
||||||
|
|
||||||
--disable_warnings
|
--disable_warnings
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Test for InnoDB sync state flushing.
|
# Test for InnoDB sync state flushing.
|
||||||
|
|
||||||
--source include/have_innodb.inc
|
--source include/have_xtradb.inc
|
||||||
--source include/have_debug.inc
|
--source include/have_debug.inc
|
||||||
|
|
||||||
--disable_warnings
|
--disable_warnings
|
||||||
|
@ -5,8 +5,6 @@
|
|||||||
# statement based format. This tests work completed in WL#3629. #
|
# statement based format. This tests work completed in WL#3629. #
|
||||||
###################################################################
|
###################################################################
|
||||||
|
|
||||||
--source include/master-slave.inc
|
|
||||||
|
|
||||||
disable_query_log;
|
disable_query_log;
|
||||||
call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
|
call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
|
||||||
enable_query_log;
|
enable_query_log;
|
||||||
|
@ -20,6 +20,8 @@ user_var-binlog: PBXT requires format=row
|
|||||||
|
|
||||||
mysqlbinlog_row: test expects a non-transactional engine
|
mysqlbinlog_row: test expects a non-transactional engine
|
||||||
|
|
||||||
|
pool_of_threads: unstable
|
||||||
|
|
||||||
merge_recover: meaningless in overlay
|
merge_recover: meaningless in overlay
|
||||||
merge_debug: meaningless in overlay
|
merge_debug: meaningless in overlay
|
||||||
myisam: meaningless in overlay
|
myisam: meaningless in overlay
|
||||||
|
Reference in New Issue
Block a user