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
4f676e28
Commit
4f676e28
authored
May 22, 2002
by
Sinisa@sinisa.nasamreza.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test cases for the GROUP BY bug ...
parent
af999b18
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
0 deletions
+36
-0
mysql-test/r/sel000004.result
mysql-test/r/sel000004.result
+20
-0
mysql-test/t/sel000004.test
mysql-test/t/sel000004.test
+16
-0
No files found.
mysql-test/r/sel000004.result
0 → 100644
View file @
4f676e28
drop table if exists t1;
create table t1 (One int unsigned, Two int unsigned, Three int unsigned, Four int unsigned);
insert into t1 values (1,2,1,4);
insert into t1 values (1,2,2,4);
insert into t1 values (1,2,3,4);
insert into t1 values (1,2,4,4);
insert into t1 values (1,1,1,4);
insert into t1 values (1,1,2,4);
insert into t1 values (1,1,3,4);
insert into t1 values (1,1,4,4);
insert into t1 values (1,3,1,4);
insert into t1 values (1,3,2,4);
insert into t1 values (1,3,3,4);
insert into t1 values (1,3,4,4);
select One, Two, sum(Four) from t1 group by One,Two;
One Two sum(Four)
1 1 16
1 2 16
1 3 16
drop table if exists t1;
mysql-test/t/sel000004.test
0 → 100644
View file @
4f676e28
drop
table
if
exists
t1
;
create
table
t1
(
One
int
unsigned
,
Two
int
unsigned
,
Three
int
unsigned
,
Four
int
unsigned
);
insert
into
t1
values
(
1
,
2
,
1
,
4
);
insert
into
t1
values
(
1
,
2
,
2
,
4
);
insert
into
t1
values
(
1
,
2
,
3
,
4
);
insert
into
t1
values
(
1
,
2
,
4
,
4
);
insert
into
t1
values
(
1
,
1
,
1
,
4
);
insert
into
t1
values
(
1
,
1
,
2
,
4
);
insert
into
t1
values
(
1
,
1
,
3
,
4
);
insert
into
t1
values
(
1
,
1
,
4
,
4
);
insert
into
t1
values
(
1
,
3
,
1
,
4
);
insert
into
t1
values
(
1
,
3
,
2
,
4
);
insert
into
t1
values
(
1
,
3
,
3
,
4
);
insert
into
t1
values
(
1
,
3
,
4
,
4
);
select
One
,
Two
,
sum
(
Four
)
from
t1
group
by
One
,
Two
;
drop
table
if
exists
t1
;
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