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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
a09df748
Commit
a09df748
authored
Dec 31, 2004
by
sergefp@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/dbdata/psergey/mysql-5.0-bug7264
into mysql.com:/dbdata/psergey/mysql-5.0-build-fix-31dec
parents
08416134
38b9f733
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
+15
-12
mysql-test/r/func_group.result
mysql-test/r/func_group.result
+14
-12
mysql-test/t/func_group.test
mysql-test/t/func_group.test
+1
-0
No files found.
mysql-test/r/func_group.result
View file @
a09df748
...
...
@@ -315,6 +315,7 @@ insert into t1 values('GTM',3,'DAL',0.070,date'1977-09-23');
insert into t1 values('SSJ',null,'CHI',null,date'1974-03-19');
insert into t1 values('KKK',3,'ATL',null,null);
insert into t1 values('XXX',null,'MIN',null,null);
insert into t1 values('WWW',1,'LED',null,null);
insert into t2 values('TKF','Seattle','WA','AME');
insert into t2 values('LCC','Los Angeles','CA','TWU');
insert into t2 values('DEN','Denver','CO','BDL');
...
...
@@ -338,6 +339,7 @@ GTM 3 DAL 0.07 1977-09-23
SSJ NULL CHI NULL 1974-03-19
KKK 3 ATL NULL NULL
XXX NULL MIN NULL NULL
WWW 1 LED NULL NULL
select * from t2;
a1 a2 a3 a4
TKF Seattle WA AME
...
...
@@ -574,15 +576,15 @@ AME AME
explain
select min(a1) from t1 where a1 > 'KKK' or a1 < 'XXX';
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index PRIMARY PRIMARY 3 NULL 1
4
Using where; Using index
1 SIMPLE t1 index PRIMARY PRIMARY 3 NULL 1
5
Using where; Using index
explain
select min(a1) from t1 where a1 != 'KKK';
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index PRIMARY PRIMARY 3 NULL 1
4
Using where; Using index
1 SIMPLE t1 index PRIMARY PRIMARY 3 NULL 1
5
Using where; Using index
explain
select max(a3) from t1 where a2 < 2 and a3 < 'SEA';
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range k1 k1 3 NULL
5
Using where; Using index
1 SIMPLE t1 range k1 k1 3 NULL
6
Using where; Using index
explain
select max(t1.a3), min(t2.a2) from t1, t2 where t1.a2 = 2 and t1.a3 < 'MIN' and t2.a3 > 'CA';
id select_type table type possible_keys key key_len ref rows Extra
...
...
@@ -591,40 +593,40 @@ id select_type table type possible_keys key key_len ref rows Extra
explain
select min(a4 - 0.01) from t1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index NULL k2 12 NULL 1
4
Using index
1 SIMPLE t1 index NULL k2 12 NULL 1
5
Using index
explain
select max(a4 + 0.01) from t1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index NULL k2 12 NULL 1
4
Using index
1 SIMPLE t1 index NULL k2 12 NULL 1
5
Using index
explain
select min(a3) from t1 where (a2 +1 ) is null;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index NULL k1 7 NULL 1
4
Using where; Using index
1 SIMPLE t1 index NULL k1 7 NULL 1
5
Using where; Using index
explain
select min(a3) from t1 where (a2 + 1) = 2;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index NULL k1 7 NULL 1
4
Using where; Using index
1 SIMPLE t1 index NULL k1 7 NULL 1
5
Using where; Using index
explain
select min(a3) from t1 where 2 = (a2 + 1);
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index NULL k1 7 NULL 1
4
Using where; Using index
1 SIMPLE t1 index NULL k1 7 NULL 1
5
Using where; Using index
explain
select min(a2) from t1 where a2 < 2 * a2 - 8;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index NULL k1 7 NULL 1
4
Using where; Using index
1 SIMPLE t1 index NULL k1 7 NULL 1
5
Using where; Using index
explain
select min(a1) from t1 where a1 between a3 and 'KKK';
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL PRIMARY NULL NULL NULL 1
4
Using where
1 SIMPLE t1 ALL PRIMARY NULL NULL NULL 1
5
Using where
explain
select min(a4) from t1 where (a4 + 0.01) between 0.07 and 0.08;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index NULL k2 12 NULL 1
4
Using where; Using index
1 SIMPLE t1 index NULL k2 12 NULL 1
5
Using where; Using index
explain
select concat(min(t1.a1),min(t2.a4)) from t1, t2 where t2.a4 <> 'AME';
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t2 range k2 k2 4 NULL 6 Using where; Using index
1 SIMPLE t1 index NULL PRIMARY 3 NULL 1
4
Using index
1 SIMPLE t1 index NULL PRIMARY 3 NULL 1
5
Using index
drop table t1, t2;
create table t1 (USR_ID integer not null, MAX_REQ integer not null, constraint PK_SEA_USER primary key (USR_ID)) engine=InnoDB;
insert into t1 values (1, 3);
...
...
mysql-test/t/func_group.test
View file @
a09df748
...
...
@@ -216,6 +216,7 @@ insert into t1 values('GTM',3,'DAL',0.070,date'1977-09-23');
insert
into
t1
values
(
'SSJ'
,
null
,
'CHI'
,
null
,
date
'1974-03-19'
);
insert
into
t1
values
(
'KKK'
,
3
,
'ATL'
,
null
,
null
);
insert
into
t1
values
(
'XXX'
,
null
,
'MIN'
,
null
,
null
);
insert
into
t1
values
(
'WWW'
,
1
,
'LED'
,
null
,
null
);
# Populate table t2
insert
into
t2
values
(
'TKF'
,
'Seattle'
,
'WA'
,
'AME'
);
...
...
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