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
f58315f8
Commit
f58315f8
authored
Aug 23, 2005
by
timour@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test for BUG#6495.
The bug itself is fixed by WL#2486.
parent
5f9d05d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
mysql-test/r/select.result
mysql-test/r/select.result
+12
-0
mysql-test/t/select.test
mysql-test/t/select.test
+13
-0
No files found.
mysql-test/r/select.result
View file @
f58315f8
...
...
@@ -2875,3 +2875,15 @@ b a t1_val t2_val
1 1 1 1
1 2 2 1
drop table t1, t2, t3;
create table t1 (a char(1));
create table t2 (a char(1));
insert into t1 values ('a'),('b'),('c');
insert into t2 values ('b'),('c'),('d');
select a from t1 natural join t2;
a
b
c
select * from t1 natural join t2 where a = 'b';
a
b
drop table t1, t2;
mysql-test/t/select.test
View file @
f58315f8
...
...
@@ -2443,3 +2443,16 @@ insert into t3 values (1,1),(2,1),(3,1),(4,1);
select
*
from
t1
natural
join
t2
natural
join
t3
;
select
*
from
t1
natural
join
t3
natural
join
t2
;
drop
table
t1
,
t2
,
t3
;
#
# Bug #6495 Illogical requirement for column qualification in NATURAL join
#
create
table
t1
(
a
char
(
1
));
create
table
t2
(
a
char
(
1
));
insert
into
t1
values
(
'a'
),(
'b'
),(
'c'
);
insert
into
t2
values
(
'b'
),(
'c'
),(
'd'
);
select
a
from
t1
natural
join
t2
;
select
*
from
t1
natural
join
t2
where
a
=
'b'
;
drop
table
t1
,
t2
;
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