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
181d9d28
Commit
181d9d28
authored
Jul 12, 2017
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-13180 Unused left join causes server crash
already fixed by
be55bbc2
just add a test case
parent
05b678bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
mysql-test/r/group_by.result
mysql-test/r/group_by.result
+8
-0
mysql-test/t/group_by.test
mysql-test/t/group_by.test
+11
-0
No files found.
mysql-test/r/group_by.result
View file @
181d9d28
...
...
@@ -2545,6 +2545,14 @@ select
from t4;
ERROR 42S22: Reference 'field7' not supported (reference to group function)
drop table t1, t2, t3, t4;
create table t1 (i1 int);
insert into t1 values (1);
create table t2 (i int);
insert into t2 values (2);
select 1 from t1 left join t2 b on b.i = (select max(b.i) from t2);
1
1
drop table t1, t2;
create table t1 (c1 int, c2 int);
create table t2 (c1 int, c2 int);
select t1.c1 as c1, t2.c2 as c1 from t1, t2 where t1.c1 < 20 and t2.c2 > 5 group by t1.c1, t2.c2 having t1.c1 < 3;
...
...
mysql-test/t/group_by.test
View file @
181d9d28
...
...
@@ -1722,6 +1722,17 @@ select
from
t4
;
drop
table
t1
,
t2
,
t3
,
t4
;
#
# MDEV-13180 Unused left join causes server crash
#
create
table
t1
(
i1
int
);
insert
into
t1
values
(
1
);
create
table
t2
(
i
int
);
insert
into
t2
values
(
2
);
select
1
from
t1
left
join
t2
b
on
b
.
i
=
(
select
max
(
b
.
i
)
from
t2
);
drop
table
t1
,
t2
;
#
# MDEV-12489 The select stmt may fail due to "having clause is ambiguous" unexpected
#
...
...
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