Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
834bdfa1
Commit
834bdfa1
authored
Jul 08, 2011
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update test results for previous csets.
parent
41c766f3
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
38 additions
and
57 deletions
+38
-57
mysql-test/r/mrr_icp_extra.result
mysql-test/r/mrr_icp_extra.result
+5
-20
mysql-test/suite/maria/r/maria.result
mysql-test/suite/maria/r/maria.result
+4
-4
mysql-test/suite/pbxt/r/null_key.result
mysql-test/suite/pbxt/r/null_key.result
+1
-1
mysql-test/suite/pbxt/r/order_by.result
mysql-test/suite/pbxt/r/order_by.result
+1
-1
mysql-test/suite/pbxt/r/ps_1general.result
mysql-test/suite/pbxt/r/ps_1general.result
+2
-2
mysql-test/suite/pbxt/r/range.result
mysql-test/suite/pbxt/r/range.result
+2
-2
mysql-test/suite/vcol/r/vcol_misc.result
mysql-test/suite/vcol/r/vcol_misc.result
+2
-2
mysql-test/suite/vcol/r/vcol_select_innodb.result
mysql-test/suite/vcol/r/vcol_select_innodb.result
+7
-7
mysql-test/suite/vcol/r/vcol_select_myisam.result
mysql-test/suite/vcol/r/vcol_select_myisam.result
+9
-9
mysql-test/t/mrr_icp_extra.test
mysql-test/t/mrr_icp_extra.test
+5
-9
No files found.
mysql-test/r/mrr_icp_extra.result
View file @
834bdfa1
...
...
@@ -811,21 +811,6 @@ Percentage float(3,1) NOT NULL default '0.0',
PRIMARY KEY (Country, Language),
INDEX (Percentage)
);
explain
SELECT * FROM City
WHERE (Name < 'Ac' AND (Country > 'A' AND Country < 'B')) OR
(Name
BETWEEN 'P' AND 'Pb' AND (Population > 101000 AND Population < 110000));
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE City index_merge Population,Country Country,Population 3,4 NULL 419 Using sort_union(Country,Population); Using where
SELECT * FROM City
WHERE (Name < 'Ac' AND (Country > 'A' AND Country < 'B')) OR
(Name
BETWEEN 'P' AND 'Pb' AND (Population > 101000 AND Population < 110000));
ID Name Country Population
65 Abu Dhabi ARE 398695
168 Pabna BGD 103277
189 Parakou BEN 103577
750 Paarl ZAF 105768
2865 Pak Pattan PAK 107800
SELECT * FROM City
WHERE ((Name > 'Ca' AND Name < 'Cf') OR (Country > 'E' AND Country < 'F'))
AND (Population > 101000 AND Population < 102000);
...
...
@@ -839,13 +824,13 @@ SELECT * FROM City
WHERE ((Name > 'Ca' AND Name < 'Cf') OR (Country > 'E' AND Country < 'F'))
AND (Population > 101000 AND Population < 102000);
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE City range Population,Country Population 4 NULL
42
Using index condition; Using where; Rowid-ordered scan
1 SIMPLE City range Population,Country Population 4 NULL
#
Using index condition; Using where; Rowid-ordered scan
explain
SELECT * FROM City
WHERE (Name < 'Ac' AND (Country > 'A' AND Country < 'B')) OR
(Name
BETWEEN 'P' AND 'Pb' AND (Population > 101000 AND Population < 110000));
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE City index_merge Population,Country Country,Population 3,4 NULL
419
Using sort_union(Country,Population); Using where
1 SIMPLE City index_merge Population,Country Country,Population 3,4 NULL
#
Using sort_union(Country,Population); Using where
SELECT * FROM City
WHERE (Name < 'Ac' AND (Country > 'A' AND Country < 'B')) OR
(Name
BETWEEN 'P' AND 'Pb' AND (Population > 101000 AND Population < 110000));
...
...
@@ -864,12 +849,12 @@ explain
SELECT * FROM City
WHERE Name LIKE 'M%' AND Population > 7000000;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE City range Population Population 4 NULL
32
Using index condition; Using where; Rowid-ordered scan
1 SIMPLE City range Population Population 4 NULL
#
Using index condition; Using where; Rowid-ordered scan
explain
SELECT * FROM City
WHERE Name BETWEEN 'G' AND 'K' AND Population > 500000 AND Country LIKE 'C%';
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE City range Population,Country
Population 4 NULL 520
Using index condition; Using where; Rowid-ordered scan
1 SIMPLE City range Population,Country
# # NULL #
Using index condition; Using where; Rowid-ordered scan
SELECT * FROM City
WHERE Name BETWEEN 'G' AND 'K' AND Population > 500000 AND Country LIKE 'C%';
ID Name Country Population
...
...
@@ -889,7 +874,7 @@ explain
SELECT * FROM City
WHERE Name BETWEEN 'G' AND 'J' AND Population > 500000 AND Country LIKE 'C%';
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE City range Population,Country
Population 4 NULL 520
Using index condition; Using where; Rowid-ordered scan
1 SIMPLE City range Population,Country
# # NULL #
Using index condition; Using where; Rowid-ordered scan
SELECT * FROM City
WHERE Name BETWEEN 'G' AND 'J' AND Population > 500000 AND Country LIKE 'C%';
ID Name Country Population
...
...
mysql-test/suite/maria/r/maria.result
View file @
834bdfa1
...
...
@@ -400,10 +400,10 @@ id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ref a a 4 test.t2.a 3
explain select * from t1 where a=0 or a=2;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range a a 4 NULL 4 Using
index condition; Rowid-ordered scan
1 SIMPLE t1 range a a 4 NULL 4 Using
where
explain select * from t1 force index (a) where a=0 or a=2;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range a a 4 NULL 4 Using
index condition; Rowid-ordered scan
1 SIMPLE t1 range a a 4 NULL 4 Using
where
explain select * from t1 where c=1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ref c,c_2 c 5 const 1
...
...
@@ -1142,7 +1142,7 @@ qq
*a
*a*a *
explain select * from t1 where v='a';
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ref v,v_2 # 13 const # Using
index condition
1 SIMPLE t1 ref v,v_2 # 13 const # Using
where
select v,count(*) from t1 group by v limit 10;
v count(*)
a 1
...
...
@@ -1318,7 +1318,7 @@ id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ref v v 303 const # Using where; Using index
explain select * from t1 where v='a';
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ref v v 303 const # Using
index condition
1 SIMPLE t1 ref v v 303 const # Using
where
select v,count(*) from t1 group by v limit 10;
v count(*)
a 1
...
...
mysql-test/suite/pbxt/r/null_key.result
View file @
834bdfa1
...
...
@@ -258,7 +258,7 @@ INSERT INTO t1 VALUES (1,NULL),(2,NULL),(3,1),(4,2),(5,NULL),(6,NULL),(7,3),(8,4
INSERT INTO t2 VALUES (1,NULL),(2,NULL),(3,1),(4,2),(5,NULL),(6,NULL),(7,3),(8,4),(9,NULL),(10,NULL);
explain select id from t1 where uniq_id is null;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ref idx1 idx1 5 const 5 Using
index condition
1 SIMPLE t1 ref idx1 idx1 5 const 5 Using
where
explain select id from t1 where uniq_id =1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 const idx1 idx1 5 const 1
...
...
mysql-test/suite/pbxt/r/order_by.result
View file @
834bdfa1
...
...
@@ -514,7 +514,7 @@ id select_type table type possible_keys key key_len ref rows Extra
EXPLAIN SELECT t1.gid, t3.uid from t1, t3 where t1.skr = t3.uid order by t1.gid,t3.skr;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 6 Using temporary; Using filesort
1 SIMPLE t3 eq_ref PRIMARY PRIMARY 2 test.t1.skr 1 Using
index condition
1 SIMPLE t3 eq_ref PRIMARY PRIMARY 2 test.t1.skr 1 Using
where
drop table t1,t2,t3;
CREATE TABLE t1 (
`titre` char(80) NOT NULL default '',
...
...
mysql-test/suite/pbxt/r/ps_1general.result
View file @
834bdfa1
...
...
@@ -465,9 +465,9 @@ def key 253 64 7 Y 0 31 8
def key_len 253 4096 1 Y 0 31 8
def ref 253 2048 0 Y 0 31 8
def rows 8 10 1 Y 32928 0 63
def Extra 253 255
5
7 N 1 31 8
def Extra 253 255
2
7 N 1 31 8
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 3 Using
index condition; Rowid-ordered scan
; Using filesort
1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 3 Using
where
; Using filesort
drop table if exists t2;
create table t2 (id smallint, name varchar(20)) ;
prepare stmt1 from ' insert into t2 values(?, ?) ' ;
...
...
mysql-test/suite/pbxt/r/range.result
View file @
834bdfa1
...
...
@@ -277,7 +277,7 @@ INSERT INTO t1 VALUES
(33,5),(33,5),(33,5),(33,5),(34,5),(35,5);
EXPLAIN SELECT * FROM t1 WHERE a IN(1,2) AND b=5;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range a,b a 5 NULL 2 Using
index condition; Using where; Rowid-ordered scan
1 SIMPLE t1 range a,b a 5 NULL 2 Using
where
SELECT * FROM t1 WHERE a IN(1,2) AND b=5;
a b
DROP TABLE t1;
...
...
@@ -922,7 +922,7 @@ INSERT INTO t1 VALUES
('A2','2005-12-01 08:00:00',1000);
EXPLAIN SELECT * FROM t1 WHERE item='A1' AND started<='2005-12-01 24:00:00';
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ref PRIMARY PRIMARY 20 const 2 Using
index condition
1 SIMPLE t1 ref PRIMARY PRIMARY 20 const 2 Using
where
SELECT * FROM t1 WHERE item='A1' AND started<='2005-12-01 24:00:00';
item started price
Warnings:
...
...
mysql-test/suite/vcol/r/vcol_misc.result
View file @
834bdfa1
...
...
@@ -144,12 +144,12 @@ explain
select * from t1,t2 where t1.b=t2.c and d <= 100;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where
1 SIMPLE t2 ref idx idx 5 test.t1.b 2 Using where
; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
1 SIMPLE t2 ref idx idx 5 test.t1.b 2 Using where
select * from t1,t2 where t1.b=t2.c and d <= 100;
a b c d v
3 30 30 100 101
4 20 20 100 101
1 20 20 100 101
3 30 30 100 101
set join_cache_level=default;
drop table t1, t2;
create table t1 (a bigint, b bigint as (a > '2'));
...
...
mysql-test/suite/vcol/r/vcol_select_innodb.result
View file @
834bdfa1
...
...
@@ -44,7 +44,7 @@ a b c
1 -1 -1
explain select * from t3 where c>=-1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t3 range c c 5 NULL 1 Using
index condition; Rowid-ordered scan
1 SIMPLE t3 range c c 5 NULL 1 Using
where
# select_type=SIMPLE, type=ref
select * from t1,t3 where t1.c=t3.c and t3.c=-1;
a b c a b c
...
...
@@ -136,11 +136,11 @@ id select_type table type possible_keys key key_len ref rows Extra
# SELECT * FROM tbl_name WHERE <vcol expr>
select * from t3 where c >= -2;
a b c
1 -1 -1
2 -2 -2
1 -1 -1
explain select * from t3 where c >= -2;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t3 range c c 5 NULL 1 Using
index condition; Rowid-ordered scan
1 SIMPLE t3 range c c 5 NULL 1 Using
where
# SELECT * FROM tbl_name WHERE <non-vcol expr>
select * from t3 where a between 1 and 2;
a b c
...
...
@@ -160,11 +160,11 @@ id select_type table type possible_keys key key_len ref rows Extra
# SELECT * FROM tbl_name WHERE <indexed vcol expr>
select * from t3 where c between -2 and -1;
a b c
1 -1 -1
2 -2 -2
1 -1 -1
explain select * from t3 where c between -2 and -1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t3 range c c 5 NULL 1 Using
index condition; Rowid-ordered scan
1 SIMPLE t3 range c c 5 NULL 1 Using
where
# SELECT * FROM tbl_name WHERE <non-vcol expr> ORDER BY <non-indexed vcol>
select * from t3 where a between 1 and 2 order by b;
a b c
...
...
@@ -204,7 +204,7 @@ a b c
1 -1 -1
explain select * from t3 where c between -2 and -1 order by b;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t3 range c c 5 NULL 1 Using
index condition; Rowid-ordered scan
; Using filesort
1 SIMPLE t3 range c c 5 NULL 1 Using
where
; Using filesort
# SELECT * FROM tbl_name WHERE <non-indexed vcol expr> ORDER BY <indexed vcol>
select * from t3 where b between -2 and -1 order by c;
a b c
...
...
@@ -220,7 +220,7 @@ a b c
1 -1 -1
explain select * from t3 where c between -2 and -1 order by c;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t3 range c c 5 NULL 1 Using
index condition
1 SIMPLE t3 range c c 5 NULL 1 Using
where
# SELECT sum(<non-indexed vcol>) FROM tbl_name GROUP BY <non-indexed vcol>
select sum(b) from t1 group by b;
sum(b)
...
...
mysql-test/suite/vcol/r/vcol_select_myisam.result
View file @
834bdfa1
...
...
@@ -44,7 +44,7 @@ a b c
1 -1 -1
explain select * from t3 where c>=-1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t3 range c c 5 NULL 2 Using
index condition; Rowid-ordered scan
1 SIMPLE t3 range c c 5 NULL 2 Using
where
# select_type=SIMPLE, type=ref
select * from t1,t3 where t1.c=t3.c and t3.c=-1;
a b c a b c
...
...
@@ -140,15 +140,15 @@ a b c
1 -1 -1
explain select * from t3 where c >= -2;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t3 range c c 5 NULL 2 Using
index condition; Rowid-ordered scan
1 SIMPLE t3 range c c 5 NULL 2 Using
where
# SELECT * FROM tbl_name WHERE <non-vcol expr>
select * from t3 where a between 1 and 2;
a b c
2 -2 -2
1 -1 -1
2 -2 -2
explain select * from t3 where a between 1 and 2;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t3 range PRIMARY PRIMARY 4 NULL 1 Using
index condition; Rowid-ordered scan
1 SIMPLE t3 range PRIMARY PRIMARY 4 NULL 1 Using
where
# SELECT * FROM tbl_name WHERE <non-indexed vcol expr>
select * from t3 where b between -2 and -1;
a b c
...
...
@@ -164,7 +164,7 @@ a b c
1 -1 -1
explain select * from t3 where c between -2 and -1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t3 range c c 5 NULL 1 Using
index condition; Rowid-ordered scan
1 SIMPLE t3 range c c 5 NULL 1 Using
where
# SELECT * FROM tbl_name WHERE <non-vcol expr> ORDER BY <indexed vcol>
select * from t3 where a between 1 and 2 order by c;
a b c
...
...
@@ -172,7 +172,7 @@ a b c
1 -1 -1
explain select * from t3 where a between 1 and 2 order by c;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t3 range PRIMARY PRIMARY 4 NULL 1 Using
index condition; Rowid-ordered scan
; Using filesort
1 SIMPLE t3 range PRIMARY PRIMARY 4 NULL 1 Using
where
; Using filesort
# SELECT * FROM tbl_name WHERE <non-indexed vcol expr> ORDER BY <non-vcol>
select * from t3 where b between -2 and -1 order by a;
a b c
...
...
@@ -188,7 +188,7 @@ a b c
2 -2 -2
explain select * from t3 where c between -2 and -1 order by a;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t3 range c c 5 NULL 1 Using
index condition; Rowid-ordered scan
; Using filesort
1 SIMPLE t3 range c c 5 NULL 1 Using
where
; Using filesort
# SELECT * FROM tbl_name WHERE <non-indexed vcol expr> ORDER BY <non-indexed vcol>
select * from t3 where b between -2 and -1 order by b;
a b c
...
...
@@ -204,7 +204,7 @@ a b c
1 -1 -1
explain select * from t3 where c between -2 and -1 order by b;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t3 range c c 5 NULL 1 Using
index condition; Rowid-ordered scan
; Using filesort
1 SIMPLE t3 range c c 5 NULL 1 Using
where
; Using filesort
# SELECT * FROM tbl_name WHERE <non-indexed vcol expr> ORDER BY <indexed vcol>
select * from t3 where b between -2 and -1 order by c;
a b c
...
...
@@ -220,7 +220,7 @@ a b c
1 -1 -1
explain select * from t3 where c between -2 and -1 order by c;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t3 range c c 5 NULL 1 Using
index condition
1 SIMPLE t3 range c c 5 NULL 1 Using
where
# SELECT sum(<non-indexed vcol>) FROM tbl_name GROUP BY <non-indexed vcol>
select sum(b) from t1 group by b;
sum(b)
...
...
mysql-test/t/mrr_icp_extra.test
View file @
834bdfa1
...
...
@@ -189,24 +189,17 @@ use world;
--
enable_result_log
--
enable_query_log
explain
SELECT
*
FROM
City
WHERE
(
Name
<
'Ac'
AND
(
Country
>
'A'
AND
Country
<
'B'
))
OR
(
Name
BETWEEN
'P'
AND
'Pb'
AND
(
Population
>
101000
AND
Population
<
110000
));
SELECT
*
FROM
City
WHERE
(
Name
<
'Ac'
AND
(
Country
>
'A'
AND
Country
<
'B'
))
OR
(
Name
BETWEEN
'P'
AND
'Pb'
AND
(
Population
>
101000
AND
Population
<
110000
));
SELECT
*
FROM
City
WHERE
((
Name
>
'Ca'
AND
Name
<
'Cf'
)
OR
(
Country
>
'E'
AND
Country
<
'F'
))
AND
(
Population
>
101000
AND
Population
<
102000
);
--
replace_column
9
#
explain
SELECT
*
FROM
City
WHERE
((
Name
>
'Ca'
AND
Name
<
'Cf'
)
OR
(
Country
>
'E'
AND
Country
<
'F'
))
AND
(
Population
>
101000
AND
Population
<
102000
);
--
replace_column
9
#
explain
SELECT
*
FROM
City
WHERE
(
Name
<
'Ac'
AND
(
Country
>
'A'
AND
Country
<
'B'
))
OR
...
...
@@ -219,16 +212,19 @@ WHERE (Name < 'Ac' AND (Country > 'A' AND Country < 'B')) OR
SELECT
*
FROM
City
WHERE
Name
LIKE
'M%'
AND
Population
>
7000000
;
--
replace_column
9
#
explain
SELECT
*
FROM
City
WHERE
Name
LIKE
'M%'
AND
Population
>
7000000
;
--
replace_column
6
# 7 # 9 #
explain
SELECT
*
FROM
City
WHERE
Name
BETWEEN
'G'
AND
'K'
AND
Population
>
500000
AND
Country
LIKE
'C%'
;
SELECT
*
FROM
City
WHERE
Name
BETWEEN
'G'
AND
'K'
AND
Population
>
500000
AND
Country
LIKE
'C%'
;
--
replace_column
6
# 7 # 9 #
explain
SELECT
*
FROM
City
WHERE
Name
BETWEEN
'G'
AND
'J'
AND
Population
>
500000
AND
Country
LIKE
'C%'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment